Update app.py
Browse files
app.py
CHANGED
@@ -152,12 +152,12 @@ def talk(prompt,history):
|
|
152 |
t.start()
|
153 |
# start a thread
|
154 |
print("check3G")
|
155 |
-
outputs = []
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
print("check3H")
|
161 |
|
162 |
|
163 |
TITLE = "AI Copilot for Diabetes Patients"
|
|
|
152 |
t.start()
|
153 |
# start a thread
|
154 |
print("check3G")
|
155 |
+
outputs = []
|
156 |
+
for text in streamer:
|
157 |
+
outputs.append(text)
|
158 |
+
print(outputs)
|
159 |
+
yield "".join(outputs)
|
160 |
+
print("check3H")
|
161 |
|
162 |
|
163 |
TITLE = "AI Copilot for Diabetes Patients"
|