Spaces:
Build error
Build error
made changes to download the enhanced video instead of previewing it
Browse files
main.py
CHANGED
|
@@ -225,16 +225,13 @@ def process_video(video_path, output_fps):
|
|
| 225 |
interface = gr.Interface(
|
| 226 |
fn=process_video,
|
| 227 |
inputs=[
|
| 228 |
-
gr.Video(label="Upload Input Video"),
|
| 229 |
-
gr.Slider(
|
| 230 |
-
minimum=30, maximum=120, step=1, value=60, label="Desired Output FPS"
|
| 231 |
-
),
|
| 232 |
],
|
| 233 |
-
outputs=gr.
|
| 234 |
title="Video Frame Interpolation with SuperSloMo",
|
| 235 |
description="This application allows you to input a video and increase its frame rate by interpolation using a deep learning model.",
|
| 236 |
)
|
| 237 |
|
| 238 |
-
|
| 239 |
if __name__ == "__main__":
|
| 240 |
-
interface.launch()
|
|
|
|
| 225 |
interface = gr.Interface(
|
| 226 |
fn=process_video,
|
| 227 |
inputs=[
|
| 228 |
+
gr.Video(label="Upload Input Video"),
|
| 229 |
+
gr.Slider(minimum=30, maximum=120, step=1, value=60, label="Desired Output FPS"),
|
|
|
|
|
|
|
| 230 |
],
|
| 231 |
+
outputs=gr.File(label="Download Enhanced Video"), # Change output to File
|
| 232 |
title="Video Frame Interpolation with SuperSloMo",
|
| 233 |
description="This application allows you to input a video and increase its frame rate by interpolation using a deep learning model.",
|
| 234 |
)
|
| 235 |
|
|
|
|
| 236 |
if __name__ == "__main__":
|
| 237 |
+
interface.launch()
|