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