Spaces:
Running
Running
A-Mahla
commited on
Amir/handle sandbox (#20)
Browse files* ADD sandbox gestion
* ADD better sandbox gestion
* ADD better sandbox gestion
* ADD better sandbox gestion
* ADD better sandbox gestion
* ADD better sandbox gestion
* FIX Images
cua2-core/src/cua2_core/websocket/websocket_manager.py
CHANGED
|
@@ -52,7 +52,10 @@ class WebSocketManager:
|
|
| 52 |
try:
|
| 53 |
await websocket.send_text(
|
| 54 |
json.dumps(
|
| 55 |
-
message.model_dump(
|
|
|
|
|
|
|
|
|
|
| 56 |
)
|
| 57 |
)
|
| 58 |
except Exception as e:
|
|
|
|
| 52 |
try:
|
| 53 |
await websocket.send_text(
|
| 54 |
json.dumps(
|
| 55 |
+
message.model_dump(
|
| 56 |
+
mode="json",
|
| 57 |
+
context={"actions_as_json": True, "image_as_path": False},
|
| 58 |
+
)
|
| 59 |
)
|
| 60 |
)
|
| 61 |
except Exception as e:
|