Spaces:
Runtime error
Runtime error
Commit
·
c160b02
1
Parent(s):
6d5a78c
Update main.py
Browse files
main.py
CHANGED
@@ -284,7 +284,7 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
284 |
#mouse_position = '+ 0 8 1 5 : + 0 3 3 5'
|
285 |
|
286 |
previous_actions.append((action_type, mouse_position))
|
287 |
-
|
288 |
|
289 |
# Log the start time
|
290 |
start_time = time.time()
|
@@ -293,7 +293,7 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
293 |
next_frame, next_frame_append = predict_next_frame(previous_frames, previous_actions)
|
294 |
# Load and append the corresponding ground truth image instead of model output
|
295 |
#img = Image.open(f"image_{len(previous_frames)%7}.png")
|
296 |
-
previous_frames.append(next_frame_append)
|
297 |
|
298 |
# Convert the numpy array to a base64 encoded image
|
299 |
img = Image.fromarray(next_frame)
|
|
|
284 |
#mouse_position = '+ 0 8 1 5 : + 0 3 3 5'
|
285 |
|
286 |
previous_actions.append((action_type, mouse_position))
|
287 |
+
previous_actions = [(action_type, mouse_position)]
|
288 |
|
289 |
# Log the start time
|
290 |
start_time = time.time()
|
|
|
293 |
next_frame, next_frame_append = predict_next_frame(previous_frames, previous_actions)
|
294 |
# Load and append the corresponding ground truth image instead of model output
|
295 |
#img = Image.open(f"image_{len(previous_frames)%7}.png")
|
296 |
+
#previous_frames.append(next_frame_append)
|
297 |
|
298 |
# Convert the numpy array to a base64 encoded image
|
299 |
img = Image.fromarray(next_frame)
|