Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ def generate(
|
|
74 |
pad_token_id = tokenizer.eos_token_id,
|
75 |
repetition_penalty=repetition_penalty,
|
76 |
no_repeat_ngram_size=5,
|
77 |
-
early_stopping=
|
78 |
)
|
79 |
t = Thread(target=model.generate, kwargs=generate_kwargs)
|
80 |
t.start()
|
@@ -122,7 +122,6 @@ chat_interface = gr.ChatInterface(
|
|
122 |
stop_btn=None,
|
123 |
examples=[
|
124 |
["ืืชืืื ืืขืืืช ืฉืืงืืื:"],
|
125 |
-
["ืืืืฉ ืืืืจืื ืืขืืื ืืฉื ืืื ืืืืจื, ืืฉืืคืชืข ื ืฉืืขื"],
|
126 |
["ืฉืคืช ืืชืื ืืช ืคืืืืื ืืื"],
|
127 |
["ืืขืืืื ืฉื ืกืื ืืจืื"],
|
128 |
["ืฉืืื: ืืื ืขืืจ ืืืืจื ืฉื ืืืื ืช ืืฉืจืื?\nืชืฉืืื:"],
|
|
|
74 |
pad_token_id = tokenizer.eos_token_id,
|
75 |
repetition_penalty=repetition_penalty,
|
76 |
no_repeat_ngram_size=5,
|
77 |
+
early_stopping=False,
|
78 |
)
|
79 |
t = Thread(target=model.generate, kwargs=generate_kwargs)
|
80 |
t.start()
|
|
|
122 |
stop_btn=None,
|
123 |
examples=[
|
124 |
["ืืชืืื ืืขืืืช ืฉืืงืืื:"],
|
|
|
125 |
["ืฉืคืช ืืชืื ืืช ืคืืืืื ืืื"],
|
126 |
["ืืขืืืื ืฉื ืกืื ืืจืื"],
|
127 |
["ืฉืืื: ืืื ืขืืจ ืืืืจื ืฉื ืืืื ืช ืืฉืจืื?\nืชืฉืืื:"],
|