vilarin commited on
Commit
88b5b33
·
verified ·
1 Parent(s): 1e64d54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,12 +75,12 @@ def stream_chat(
75
 
76
  response = tokenizer.decode(
77
  gen_out[0][input_ids.shape[1]:],
78
- skip_special_tokens=False,
79
  clean_up_tokenization_spaces=False
80
  )
81
 
82
  for i in range(len(response)):
83
- time.sleep(0.05)
84
  yield response[: i + 1]
85
 
86
  chatbot = gr.Chatbot(height=600, placeholder=PLACEHOLDER)
 
75
 
76
  response = tokenizer.decode(
77
  gen_out[0][input_ids.shape[1]:],
78
+ skip_special_tokens=True,
79
  clean_up_tokenization_spaces=False
80
  )
81
 
82
  for i in range(len(response)):
83
+ time.sleep(0.02)
84
  yield response[: i + 1]
85
 
86
  chatbot = gr.Chatbot(height=600, placeholder=PLACEHOLDER)