Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,7 +75,7 @@ def sample(
|
|
| 75 |
# export_to_video(frames, video_path, fps=8)
|
| 76 |
torch.manual_seed(seed)
|
| 77 |
|
| 78 |
-
return video_path
|
| 79 |
|
| 80 |
def resize_image(image, output_size=(672, 384)):
|
| 81 |
# Calculate aspect ratios
|
|
@@ -124,7 +124,7 @@ with gr.Blocks() as demo:
|
|
| 124 |
# fps_id = gr.Slider(label="Frames per second", info="The length of your video in seconds will be 25/fps", value=6, minimum=5, maximum=30)
|
| 125 |
|
| 126 |
# image.upload(fn=resize_image, inputs=image, outputs=image, queue=False)
|
| 127 |
-
generate_btn.click(fn=sample, inputs=[
|
| 128 |
# gr.Examples(
|
| 129 |
# examples=[
|
| 130 |
# "images/blink_meme.png",
|
|
|
|
| 75 |
# export_to_video(frames, video_path, fps=8)
|
| 76 |
torch.manual_seed(seed)
|
| 77 |
|
| 78 |
+
return video_path
|
| 79 |
|
| 80 |
def resize_image(image, output_size=(672, 384)):
|
| 81 |
# Calculate aspect ratios
|
|
|
|
| 124 |
# fps_id = gr.Slider(label="Frames per second", info="The length of your video in seconds will be 25/fps", value=6, minimum=5, maximum=30)
|
| 125 |
|
| 126 |
# image.upload(fn=resize_image, inputs=image, outputs=image, queue=False)
|
| 127 |
+
generate_btn.click(fn=sample, inputs=[], outputs=[video], api_name="video")
|
| 128 |
# gr.Examples(
|
| 129 |
# examples=[
|
| 130 |
# "images/blink_meme.png",
|