Omnibus commited on
Commit
5f0a172
·
verified ·
1 Parent(s): 0dda56c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -205,11 +205,11 @@ def summarize(inp,history,data=None):
205
  #history = "preliminary result: {}\n".format(resp)
206
  #yield "", (inp,f'{mes}\n{history}')
207
  print ("final" + resp)
208
- history = "result: {}\n".format(resp)
209
  #return history
210
- yield "", [(inp,history)]
211
 
212
- out = str(history)
213
  rawp = out
214
  else:
215
  rawp = "Provide a valid data source"
 
205
  #history = "preliminary result: {}\n".format(resp)
206
  #yield "", (inp,f'{mes}\n{history}')
207
  print ("final" + resp)
208
+ out_hist = "result: {}\n".format(resp)
209
  #return history
210
+ yield "", [(inp,out_hist)]
211
 
212
+ out = str(out_hist)
213
  rawp = out
214
  else:
215
  rawp = "Provide a valid data source"