Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -128,7 +128,7 @@ def stream_chat(message, history: list, system: str, temperature: float, max_new
|
|
128 |
input_token_len = input_ids.shape[1]
|
129 |
|
130 |
output = ""
|
131 |
-
for
|
132 |
yield TextGenerationStreamOutput(
|
133 |
index=0,
|
134 |
token=TextGenerationStreamOutputToken(
|
|
|
128 |
input_token_len = input_ids.shape[1]
|
129 |
|
130 |
output = ""
|
131 |
+
for next_text in streamer:
|
132 |
yield TextGenerationStreamOutput(
|
133 |
index=0,
|
134 |
token=TextGenerationStreamOutputToken(
|