瀏覽代碼

Update the API example

oobabooga 2 年之前
父節點
當前提交
457d3c58eb
共有 1 個文件被更改,包括 2 次插入0 次删除
  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