Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -110,7 +110,8 @@ def bot(history, api_kind):
|
|
110 |
history[-1][1] = ""
|
111 |
for character in generate_fn(prompt, history[:-1]):
|
112 |
history[-1][1] = character
|
113 |
-
|
|
|
114 |
except Exception as e: # Catch any exception
|
115 |
print('An unexpected error occurred during generation:', str(e))
|
116 |
yield f"An unexpected error occurred during generation: {str(e)}"
|
|
|
110 |
history[-1][1] = ""
|
111 |
for character in generate_fn(prompt, history[:-1]):
|
112 |
history[-1][1] = character
|
113 |
+
return history, prompt_html
|
114 |
+
# yield history, prompt_html
|
115 |
except Exception as e: # Catch any exception
|
116 |
print('An unexpected error occurred during generation:', str(e))
|
117 |
yield f"An unexpected error occurred during generation: {str(e)}"
|