Omnibus commited on
Commit
0a9b2e5
·
1 Parent(s): f90b9f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -152,7 +152,7 @@ def compress_data(c, history):
152
 
153
  def summarize(inp,history,file=None):
154
  history = [] if not history else history
155
- yield "",[(inp,history)]
156
  if file !=None:
157
  try:
158
  with open(file,"r") as f:
@@ -178,7 +178,7 @@ def summarize(inp,history,file=None):
178
  print (f'out:: {out}')
179
  #history += "observation: the search results are:\n {}\n".format(out)
180
  task = "complete?"
181
- return "", [(inp,rawp)]
182
  #################################
183
 
184
  '''
 
152
 
153
  def summarize(inp,history,file=None):
154
  history = [] if not history else history
155
+ yield "",[inp,history]
156
  if file !=None:
157
  try:
158
  with open(file,"r") as f:
 
178
  print (f'out:: {out}')
179
  #history += "observation: the search results are:\n {}\n".format(out)
180
  task = "complete?"
181
+ return "", [inp,rawp]
182
  #################################
183
 
184
  '''