Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -395,7 +395,7 @@ def generation_loop(video_path='./test_videos', seed=666, fps_out=12, batch_size
|
|
| 395 |
sample = sample.to(torch.uint8).numpy()
|
| 396 |
|
| 397 |
if is_image:
|
| 398 |
-
mediapy.
|
| 399 |
else:
|
| 400 |
mediapy.write_video(
|
| 401 |
output_dir, sample, fps=fps_out
|
|
|
|
| 395 |
sample = sample.to(torch.uint8).numpy()
|
| 396 |
|
| 397 |
if is_image:
|
| 398 |
+
mediapy.write_image(output_dir, sample[0])
|
| 399 |
else:
|
| 400 |
mediapy.write_video(
|
| 401 |
output_dir, sample, fps=fps_out
|