Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -206,7 +206,7 @@ def compress_data(c,purpose, task, history):
|
|
206 |
history="All data has been recieved.",
|
207 |
)'''
|
208 |
print ("final" + resp)
|
209 |
-
history = "
|
210 |
return history
|
211 |
|
212 |
|
@@ -324,14 +324,15 @@ def find_all(purpose,task,history, url):
|
|
324 |
#if i == " " or i=="," or i=="\n":
|
325 |
c +=1
|
326 |
print (f'c:: {c}')
|
327 |
-
if c >
|
328 |
print("compressing...")
|
329 |
-
rawp = compress_data(c,purpose,task,out)
|
|
|
330 |
else:
|
331 |
rawp = out
|
332 |
print (rawp)
|
333 |
print (f'out:: {out}')
|
334 |
-
history
|
335 |
task = "compile report"
|
336 |
return "MAIN", None, history, task
|
337 |
else:
|
|
|
206 |
history="All data has been recieved.",
|
207 |
)'''
|
208 |
print ("final" + resp)
|
209 |
+
history = "result: {}\n".format(resp)
|
210 |
return history
|
211 |
|
212 |
|
|
|
324 |
#if i == " " or i=="," or i=="\n":
|
325 |
c +=1
|
326 |
print (f'c:: {c}')
|
327 |
+
if c > MAX_HISTORY:
|
328 |
print("compressing...")
|
329 |
+
rawp = compress_data(c,purpose,task,out)
|
330 |
+
result = rawp
|
331 |
else:
|
332 |
rawp = out
|
333 |
print (rawp)
|
334 |
print (f'out:: {out}')
|
335 |
+
history = "observation: the search results are:\n {}\n".format(rawp)
|
336 |
task = "compile report"
|
337 |
return "MAIN", None, history, task
|
338 |
else:
|