Browse Source

Update the API example

oobabooga 2 năm trước cách đây
mục cha
commit
457d3c58eb
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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