Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -152,6 +152,7 @@ def compress_data(c, history):
|
|
152 |
|
153 |
def summarize(inp,history,file=None):
|
154 |
history = [] if not history else history
|
|
|
155 |
if file !=None:
|
156 |
try:
|
157 |
with open(file,"r") as f:
|
@@ -177,7 +178,7 @@ def summarize(inp,history,file=None):
|
|
177 |
print (f'out:: {out}')
|
178 |
#history += "observation: the search results are:\n {}\n".format(out)
|
179 |
task = "complete?"
|
180 |
-
return "", rawp
|
181 |
#################################
|
182 |
|
183 |
'''
|
|
|
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 |
'''
|