Spaces:
Runtime error
Runtime error
ai: Smooth stream response outputs.
Browse files
jarvis.py
CHANGED
|
@@ -136,7 +136,7 @@ def respond(multi_input, history, selected_model_display, sess):
|
|
| 136 |
history[-1][1] = ""
|
| 137 |
for character in ai_response:
|
| 138 |
history[-1][1] += character
|
| 139 |
-
time.sleep(0.
|
| 140 |
yield history, gr.MultimodalTextbox(value=None, interactive=True), sess
|
| 141 |
|
| 142 |
def change_model(new_model_display):
|
|
|
|
| 136 |
history[-1][1] = ""
|
| 137 |
for character in ai_response:
|
| 138 |
history[-1][1] += character
|
| 139 |
+
time.sleep(0.0009)
|
| 140 |
yield history, gr.MultimodalTextbox(value=None, interactive=True), sess
|
| 141 |
|
| 142 |
def change_model(new_model_display):
|