Spaces:
Runtime error
Runtime error
Commit
·
8072aa5
1
Parent(s):
6e076cc
Update main.py
Browse files
main.py
CHANGED
@@ -277,7 +277,7 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
277 |
next_frame, next_frame_append = predict_next_frame(previous_frames, previous_actions)
|
278 |
# Load and append the corresponding ground truth image instead of model output
|
279 |
#img = Image.open(f"image_{len(previous_frames)%7}.png")
|
280 |
-
previous_frames.append(
|
281 |
|
282 |
# Convert the numpy array to a base64 encoded image
|
283 |
img = Image.fromarray(next_frame)
|
|
|
277 |
next_frame, next_frame_append = predict_next_frame(previous_frames, previous_actions)
|
278 |
# Load and append the corresponding ground truth image instead of model output
|
279 |
#img = Image.open(f"image_{len(previous_frames)%7}.png")
|
280 |
+
previous_frames.append(next_frame_append)
|
281 |
|
282 |
# Convert the numpy array to a base64 encoded image
|
283 |
img = Image.fromarray(next_frame)
|