Sfoglia il codice sorgente

Update the API example

oobabooga 2 anni fa
parent
commit
457d3c58eb
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      api-example.py

+ 2 - 0
api-example.py

@@ -35,6 +35,8 @@ params = {
     'length_penalty': 1,
     'early_stopping': False,
     'seed': -1,
+    'add_bos_token': True,
+    'custom_stopping_strings': [],
 }
 
 # Input prompt