Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -80,11 +80,11 @@ def call_generate_text(message, history):
|
|
80 |
messages = history+[{"role":"user","content":message}]
|
81 |
try:
|
82 |
text = generate_text(messages)
|
83 |
-
return text
|
84 |
except RuntimeError as e:
|
85 |
print(f"An unexpected error occurred: {e}")
|
86 |
|
87 |
-
return ""
|
88 |
|
89 |
|
90 |
with gr.Blocks() as demo:
|
|
|
80 |
messages = history+[{"role":"user","content":message}]
|
81 |
try:
|
82 |
text = generate_text(messages)
|
83 |
+
return text,history
|
84 |
except RuntimeError as e:
|
85 |
print(f"An unexpected error occurred: {e}")
|
86 |
|
87 |
+
return "",history
|
88 |
|
89 |
|
90 |
with gr.Blocks() as demo:
|