Omnibus commited on
Commit
b17ff29
·
verified ·
1 Parent(s): 9b8267e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -309,7 +309,7 @@ def summarize(inp,history,data=None):
309
  e=e+chunk
310
  s=s+chunk
311
  print("DONE")
312
- yield "", [(inp,resp)],out_box
313
 
314
  #history = "preliminary result: {}\n".format(resp)
315
  #yield "", (inp,f'{mes}\n{history}')
@@ -324,7 +324,7 @@ def summarize(inp,history,data=None):
324
  print("ERROR")
325
  rawp = "Provide a valid data source"
326
  history.append((inp,rawp))
327
- yield "", history,None
328
 
329
 
330
  def find_rss():
 
309
  e=e+chunk
310
  s=s+chunk
311
  print("DONE")
312
+ return "", [(inp,resp)],out_box
313
 
314
  #history = "preliminary result: {}\n".format(resp)
315
  #yield "", (inp,f'{mes}\n{history}')
 
324
  print("ERROR")
325
  rawp = "Provide a valid data source"
326
  history.append((inp,rawp))
327
+ return "", history,None
328
 
329
 
330
  def find_rss():