Spaces:
Runtime error
Runtime error
Commit
·
242e406
1
Parent(s):
4bb6f21
Update main.py
Browse files
main.py
CHANGED
@@ -386,7 +386,7 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
386 |
mouse_position = (x, y)
|
387 |
if True:
|
388 |
previous_actions.append((action_type, mouse_position))
|
389 |
-
|
390 |
|
391 |
# Log the start time
|
392 |
start_time = time.time()
|
@@ -403,6 +403,7 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
403 |
previous_frames.append(img)
|
404 |
elif True:
|
405 |
previous_frames.append(next_frame_append)
|
|
|
406 |
|
407 |
# Convert the numpy array to a base64 encoded image
|
408 |
img = Image.fromarray(next_frame)
|
|
|
386 |
mouse_position = (x, y)
|
387 |
if True:
|
388 |
previous_actions.append((action_type, mouse_position))
|
389 |
+
previous_actions = [(action_type, mouse_position)]
|
390 |
|
391 |
# Log the start time
|
392 |
start_time = time.time()
|
|
|
403 |
previous_frames.append(img)
|
404 |
elif True:
|
405 |
previous_frames.append(next_frame_append)
|
406 |
+
previous_frames = []
|
407 |
|
408 |
# Convert the numpy array to a base64 encoded image
|
409 |
img = Image.fromarray(next_frame)
|