Update app.py
Browse files
app.py
CHANGED
|
@@ -54,7 +54,7 @@ def respond(
|
|
| 54 |
completion_to_prompt=completion_to_prompt,
|
| 55 |
verbose=True,
|
| 56 |
)
|
| 57 |
-
|
| 58 |
for chunk in llm.stream_chat(chat_template):
|
| 59 |
print(chunk.delta, end="", flush=True)
|
| 60 |
response += str(chunk.delta)
|
|
|
|
| 54 |
completion_to_prompt=completion_to_prompt,
|
| 55 |
verbose=True,
|
| 56 |
)
|
| 57 |
+
response = ""
|
| 58 |
for chunk in llm.stream_chat(chat_template):
|
| 59 |
print(chunk.delta, end="", flush=True)
|
| 60 |
response += str(chunk.delta)
|