Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -223,6 +223,8 @@ def call_main(purpose, task, history, action_input):
|
|
| 223 |
continue
|
| 224 |
if line.startswith("thought: "):
|
| 225 |
history += "{}\n".format(line)
|
|
|
|
|
|
|
| 226 |
elif line.startswith("action: "):
|
| 227 |
action_name, action_input = parse_action(line)
|
| 228 |
history += "{}\n".format(line)
|
|
@@ -308,9 +310,9 @@ def run(purpose,history):
|
|
| 308 |
if action_name == "COMPLETE":
|
| 309 |
return history
|
| 310 |
examples =[
|
| 311 |
-
"find
|
| 312 |
"return the top 10 models that I can use to identify objects in images",
|
| 313 |
-
"which models
|
| 314 |
]
|
| 315 |
|
| 316 |
|
|
|
|
| 223 |
continue
|
| 224 |
if line.startswith("thought: "):
|
| 225 |
history += "{}\n".format(line)
|
| 226 |
+
elif line.startswith("action: COMPLETE"):
|
| 227 |
+
return "COMPLETE", None, history, task
|
| 228 |
elif line.startswith("action: "):
|
| 229 |
action_name, action_input = parse_action(line)
|
| 230 |
history += "{}\n".format(line)
|
|
|
|
| 310 |
if action_name == "COMPLETE":
|
| 311 |
return history
|
| 312 |
examples =[
|
| 313 |
+
"find the most popular model that I can use to generate an image by providing a text prompt",
|
| 314 |
"return the top 10 models that I can use to identify objects in images",
|
| 315 |
+
"which models have the most likes from each category?"
|
| 316 |
]
|
| 317 |
|
| 318 |
|