Spaces:
Runtime error
Runtime error
Commit
·
8911f3b
1
Parent(s):
6c9e65b
:fire: remove manual fps slider
Browse files
app.py
CHANGED
@@ -106,8 +106,8 @@ def inference_step(vid, start_sec, duration, out_fps):
|
|
106 |
return output_video, audio_arr, out_fps, audio_fps
|
107 |
|
108 |
|
109 |
-
def predict_fn(filepath, start_sec, duration
|
110 |
-
|
111 |
vid = EncodedVideo.from_path(filepath)
|
112 |
for i in range(duration):
|
113 |
print(f"🖼️ Processing step {i + 1}/{duration}...")
|
@@ -142,7 +142,7 @@ gr.Interface(
|
|
142 |
gr.inputs.Video(),
|
143 |
gr.inputs.Slider(minimum=0, maximum=300, step=1, default=0),
|
144 |
gr.inputs.Slider(minimum=1, maximum=5, step=1, default=2),
|
145 |
-
gr.inputs.Slider(minimum=6, maximum=18, step=6, default=12),
|
146 |
],
|
147 |
outputs=gr.outputs.Video(),
|
148 |
title='AnimeGANV2 On Videos',
|
|
|
106 |
return output_video, audio_arr, out_fps, audio_fps
|
107 |
|
108 |
|
109 |
+
def predict_fn(filepath, start_sec, duration):
|
110 |
+
out_fps=12
|
111 |
vid = EncodedVideo.from_path(filepath)
|
112 |
for i in range(duration):
|
113 |
print(f"🖼️ Processing step {i + 1}/{duration}...")
|
|
|
142 |
gr.inputs.Video(),
|
143 |
gr.inputs.Slider(minimum=0, maximum=300, step=1, default=0),
|
144 |
gr.inputs.Slider(minimum=1, maximum=5, step=1, default=2),
|
145 |
+
# gr.inputs.Slider(minimum=6, maximum=18, step=6, default=12), # Leaving manual fps out for now
|
146 |
],
|
147 |
outputs=gr.outputs.Video(),
|
148 |
title='AnimeGANV2 On Videos',
|