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

Update app.py

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