Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,11 +23,11 @@ def generate_text(input_text, history):
|
|
23 |
response = output['choices'][0]['text'] + "\n"
|
24 |
print("response", response)
|
25 |
history =["init",input_text_with_history]
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
|
32 |
|
33 |
demo = gr.ChatInterface(generate_text)
|
|
|
23 |
response = output['choices'][0]['text'] + "\n"
|
24 |
print("response", response)
|
25 |
history =["init",input_text_with_history]
|
26 |
+
for character in history:
|
27 |
+
time.sleep(0.05)
|
28 |
+
yield history
|
29 |
+
|
30 |
+
|
31 |
|
32 |
|
33 |
demo = gr.ChatInterface(generate_text)
|