Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -80,6 +80,7 @@ def call_generate_text(message, history):
|
|
80 |
messages = history+[{"role":"user","content":message}]
|
81 |
try:
|
82 |
text = generate_text(messages)
|
|
|
83 |
return "",messages
|
84 |
except RuntimeError as e:
|
85 |
print(f"An unexpected error occurred: {e}")
|
|
|
80 |
messages = history+[{"role":"user","content":message}]
|
81 |
try:
|
82 |
text = generate_text(messages)
|
83 |
+
messages += [{"role":"assistant","content":text}]
|
84 |
return "",messages
|
85 |
except RuntimeError as e:
|
86 |
print(f"An unexpected error occurred: {e}")
|