Spaces:
Runtime error
Runtime error
Commit
·
75acb8d
1
Parent(s):
30e264e
Update main.py
Browse files
main.py
CHANGED
|
@@ -155,10 +155,10 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
| 155 |
mouse_position = data.get("mouse_position")
|
| 156 |
|
| 157 |
# Store the actions
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
previous_actions.append((action_type, mouse_position))
|
| 163 |
|
| 164 |
# Log the start time
|
|
|
|
| 155 |
mouse_position = data.get("mouse_position")
|
| 156 |
|
| 157 |
# Store the actions
|
| 158 |
+
position = positions[0]
|
| 159 |
+
positions = positions[1:]
|
| 160 |
+
mouse_position = position.split('~')
|
| 161 |
+
mouse_position = [int(item) for item in mouse_position]
|
| 162 |
previous_actions.append((action_type, mouse_position))
|
| 163 |
|
| 164 |
# Log the start time
|