code
Browse files
app.py
CHANGED
|
@@ -57,8 +57,7 @@ def respond(
|
|
| 57 |
thread.start()
|
| 58 |
# Print the generated text in real-time
|
| 59 |
for new_text in streamer:
|
| 60 |
-
tokenizer.decode(tokenizer.encode(new_text), skip_special_tokens=True)
|
| 61 |
-
response += new_text
|
| 62 |
yield response
|
| 63 |
|
| 64 |
with gr.Blocks() as demo:
|
|
|
|
| 57 |
thread.start()
|
| 58 |
# Print the generated text in real-time
|
| 59 |
for new_text in streamer:
|
| 60 |
+
response += tokenizer.decode(tokenizer.encode(new_text), skip_special_tokens=True)
|
|
|
|
| 61 |
yield response
|
| 62 |
|
| 63 |
with gr.Blocks() as demo:
|