Norod78 commited on
Commit
0eee7a4
โ€ข
1 Parent(s): 1b9dc38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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=True,
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ืชืฉื•ื‘ื”:"],