Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -57,9 +57,11 @@ def navigate(screenshot, task: str, platform: str, history):
|
|
57 |
|
58 |
if messages is None or len(messages)==0:
|
59 |
prompt_header = (
|
60 |
-
"You are a GUI agent. You are given a task and your action history,
|
61 |
-
" You need to perform the next action to complete
|
62 |
-
|
|
|
|
|
63 |
)
|
64 |
user_history = [{"role":"user","content":prompt_header},{"role":"user","content":{"type": "image_url", "image_url": {"url": screenshot}}}]
|
65 |
messages = user_history
|
|
|
57 |
|
58 |
if messages is None or len(messages)==0:
|
59 |
prompt_header = (
|
60 |
+
"You are a GUI agent. You are given a task and your action history, "
|
61 |
+
"with screenshots. You need to perform the next action to complete "
|
62 |
+
"the task.\n\n## Output Format\n```\nThought: ...\nAction: ...\n```\n\n"
|
63 |
+
"## Action Space\nclick(start_box='...') / type(...)\n\n"
|
64 |
+
f"### Task\n{task}"
|
65 |
)
|
66 |
user_history = [{"role":"user","content":prompt_header},{"role":"user","content":{"type": "image_url", "image_url": {"url": screenshot}}}]
|
67 |
messages = user_history
|