Namitg02 commited on
Commit
3b36d55
·
verified ·
1 Parent(s): 75679e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -152,12 +152,12 @@ def talk(prompt,history):
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"
 
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"