Omnibus commited on
Commit
5917f1f
·
verified ·
1 Parent(s): 853f578

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -291,13 +291,13 @@ def summarize(inp,history,data=None):
291
  s=s+chunk
292
  #history = "preliminary result: {}\n".format(resp)
293
  #yield "", (inp,f'{mes}\n{history}')
294
- print ("final" + resp)
295
- out_hist = "result:\n{}".format(resp)
296
- #return history
297
- yield "", [(inp,out_hist)]
298
-
299
- out = str(out_hist)
300
- rawp = out
301
  else:
302
  rawp = "Provide a valid data source"
303
  history.append((inp,rawp))
 
291
  s=s+chunk
292
  #history = "preliminary result: {}\n".format(resp)
293
  #yield "", (inp,f'{mes}\n{history}')
294
+ print ("final" + resp)
295
+ out_hist = "result:\n{}".format(resp)
296
+ #return history
297
+ yield "", [(inp,out_hist)]
298
+
299
+ out = str(out_hist)
300
+ rawp = out
301
  else:
302
  rawp = "Provide a valid data source"
303
  history.append((inp,rawp))