Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -62,8 +62,10 @@ def respond(
|
|
62 |
generation_thread.start()
|
63 |
|
64 |
# Stream the output progressively
|
|
|
65 |
for token in streamer:
|
66 |
-
|
|
|
67 |
|
68 |
|
69 |
"""
|
|
|
62 |
generation_thread.start()
|
63 |
|
64 |
# Stream the output progressively
|
65 |
+
generated_text = ""
|
66 |
for token in streamer:
|
67 |
+
generated_text += token # Append each token to the accumulated text
|
68 |
+
yield generated_text
|
69 |
|
70 |
|
71 |
"""
|