Spaces:
Sleeping
Sleeping
Yingxu He
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -51,17 +51,17 @@ def bot(history):
|
|
51 |
response = infer(history[-1][0])
|
52 |
history[-1][1] = ""
|
53 |
|
54 |
-
for character in response:
|
55 |
history[-1][1] += character
|
56 |
time.sleep(0.05)
|
|
|
57 |
yield history
|
58 |
|
59 |
|
60 |
def infer(question):
|
61 |
|
62 |
result = chain.run(text=question).strip()
|
63 |
-
|
64 |
-
return result+ "123"
|
65 |
|
66 |
|
67 |
css = """
|
|
|
51 |
response = infer(history[-1][0])
|
52 |
history[-1][1] = ""
|
53 |
|
54 |
+
for character in response:
|
55 |
history[-1][1] += character
|
56 |
time.sleep(0.05)
|
57 |
+
print(history)
|
58 |
yield history
|
59 |
|
60 |
|
61 |
def infer(question):
|
62 |
|
63 |
result = chain.run(text=question).strip()
|
64 |
+
return result
|
|
|
65 |
|
66 |
|
67 |
css = """
|