Spaces:
Runtime error
Runtime error
da03
commited on
Commit
·
a1aa2aa
1
Parent(s):
416b9ef
main.py
CHANGED
|
@@ -439,6 +439,10 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
| 439 |
|
| 440 |
action_type = data.get("action_type")
|
| 441 |
mouse_position = data.get("mouse_position")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 442 |
|
| 443 |
# Store the actions
|
| 444 |
if DEBUG:
|
|
|
|
| 439 |
|
| 440 |
action_type = data.get("action_type")
|
| 441 |
mouse_position = data.get("mouse_position")
|
| 442 |
+
if np.random.random() < 0.5:
|
| 443 |
+
print ('setting left click')
|
| 444 |
+
action_type = 'L'
|
| 445 |
+
|
| 446 |
|
| 447 |
# Store the actions
|
| 448 |
if DEBUG:
|