Spaces:
Running
Running
Amir Mahla
commited on
Commit
·
3497c05
1
Parent(s):
ea28352
CHG waiting time between step
Browse files
cua2-core/src/cua2_core/services/agent_service.py
CHANGED
|
@@ -356,11 +356,11 @@ class AgentService:
|
|
| 356 |
else None
|
| 357 |
)
|
| 358 |
|
| 359 |
-
if not (
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
):
|
| 363 |
-
|
| 364 |
|
| 365 |
image, step_filename = self.last_screenshot[message_id] # type: ignore
|
| 366 |
assert image is not None and step_filename is not None
|
|
|
|
| 356 |
else None
|
| 357 |
)
|
| 358 |
|
| 359 |
+
# if not (
|
| 360 |
+
# agent_actions is not None
|
| 361 |
+
# and not any(action.function_name == "wait" for action in agent_actions)
|
| 362 |
+
# ):
|
| 363 |
+
time.sleep(3)
|
| 364 |
|
| 365 |
image, step_filename = self.last_screenshot[message_id] # type: ignore
|
| 366 |
assert image is not None and step_filename is not None
|