Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -252,7 +252,7 @@ def call_main(purpose, task, history, action_input):
|
|
| 252 |
return action_name, action_input, history, task
|
| 253 |
else:
|
| 254 |
|
| 255 |
-
history += "
|
| 256 |
#assert False, "unknown action: {}".format(line)
|
| 257 |
#return "UPDATE-TASK", None, history, task
|
| 258 |
if "VERBOSE":
|
|
@@ -303,7 +303,7 @@ def find_all(purpose,task,history, url):
|
|
| 303 |
print(soup.title.parent.name)
|
| 304 |
#rawp.append([tag.name for tag in soup.find_all()] )
|
| 305 |
print([tag.name for tag in soup.find_all()])
|
| 306 |
-
rawp=soup
|
| 307 |
c=0
|
| 308 |
rl = len(rawp)
|
| 309 |
print(rl)
|
|
|
|
| 252 |
return action_name, action_input, history, task
|
| 253 |
else:
|
| 254 |
|
| 255 |
+
history += "{}\n".format(line)
|
| 256 |
#assert False, "unknown action: {}".format(line)
|
| 257 |
#return "UPDATE-TASK", None, history, task
|
| 258 |
if "VERBOSE":
|
|
|
|
| 303 |
print(soup.title.parent.name)
|
| 304 |
#rawp.append([tag.name for tag in soup.find_all()] )
|
| 305 |
print([tag.name for tag in soup.find_all()])
|
| 306 |
+
rawp=soup
|
| 307 |
c=0
|
| 308 |
rl = len(rawp)
|
| 309 |
print(rl)
|