Spaces:
Runtime error
Runtime error
without streaming output
Browse files
app.py
CHANGED
@@ -37,11 +37,8 @@ def add_text(history, text):
|
|
37 |
|
38 |
def bot(history):
|
39 |
response = infer(history[-1][0])
|
40 |
-
history[-1][1] =
|
41 |
-
|
42 |
-
history[-1][1] += character
|
43 |
-
time.sleep(0.05)
|
44 |
-
yield history
|
45 |
|
46 |
def infer(question):
|
47 |
|
|
|
37 |
|
38 |
def bot(history):
|
39 |
response = infer(history[-1][0])
|
40 |
+
history[-1][1] = response['result']
|
41 |
+
return history
|
|
|
|
|
|
|
42 |
|
43 |
def infer(question):
|
44 |
|