Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
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 |
'''
|