NCTCMumbai
commited on
Commit
•
74fa21f
1
Parent(s):
eeff532
Update app.py
Browse files
app.py
CHANGED
@@ -110,9 +110,9 @@ 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 |
print('final history is ',history)
|
115 |
-
return history[-1][1], prompt_html
|
116 |
|
117 |
except Exception as e: # Catch any exception
|
118 |
print('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[-1][1], prompt_html
|
116 |
|
117 |
except Exception as e: # Catch any exception
|
118 |
print('An unexpected error occurred during generation:', str(e))
|