NCTCMumbai
commited on
Commit
•
52576d8
1
Parent(s):
a6227b8
Update app.py
Browse files
app.py
CHANGED
@@ -110,9 +110,10 @@ def bot(history, api_kind):
|
|
110 |
history[-1][1] = ""
|
111 |
for character in generate_fn(prompt, history[:-1]):
|
112 |
history[-1][1] = character
|
|
|
113 |
print('final history is ',history)
|
114 |
-
return history, prompt_html
|
115 |
-
|
116 |
except Exception as e: # Catch any exception
|
117 |
print('An unexpected error occurred during generation:', str(e))
|
118 |
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 |
+
yield history, prompt_html
|
114 |
print('final history is ',history)
|
115 |
+
#return history, prompt_html
|
116 |
+
|
117 |
except Exception as e: # Catch any exception
|
118 |
print('An unexpected error occurred during generation:', str(e))
|
119 |
yield f"An unexpected error occurred during generation: {str(e)}"
|