Update app.py
Browse files
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=
|
79 |
clean_up_tokenization_spaces=False
|
80 |
)
|
81 |
|
82 |
for i in range(len(response)):
|
83 |
-
time.sleep(0.
|
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)
|