Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -150,30 +150,27 @@ article = """
|
|
150 |
iface_webcam = gr.Interface(
|
151 |
predict_fn,
|
152 |
inputs=[
|
153 |
-
gr.
|
154 |
-
gr.
|
155 |
-
gr.
|
156 |
# gr.inputs.Slider(minimum=6, maximum=18, step=6, default=12), # Leaving manual fps out for now
|
157 |
],
|
158 |
-
outputs=gr.
|
159 |
title='AnimeGANV2 On Videos',
|
160 |
description="Applying AnimeGAN-V2 to frames from video clips",
|
161 |
article=article,
|
162 |
enable_queue=True,
|
163 |
-
# examples=[
|
164 |
-
# ['obama.webm', 0, 4],
|
165 |
-
# ],
|
166 |
allow_flagging=False,
|
167 |
)
|
168 |
|
169 |
iface_file = gr.Interface(
|
170 |
predict_fn,
|
171 |
inputs=[
|
172 |
-
gr.
|
173 |
-
gr.
|
174 |
-
gr.
|
175 |
],
|
176 |
-
outputs=gr.
|
177 |
title='AnimeGANV2 On Videos',
|
178 |
description="Applying AnimeGAN-V2 to frames from video clips",
|
179 |
article=article,
|
|
|
150 |
iface_webcam = gr.Interface(
|
151 |
predict_fn,
|
152 |
inputs=[
|
153 |
+
gr.Video(source="webcam"),
|
154 |
+
gr.Slider(minimum=0, maximum=300, step=1, default=0),
|
155 |
+
gr.Slider(minimum=1, maximum=10, step=1, default=2),
|
156 |
# gr.inputs.Slider(minimum=6, maximum=18, step=6, default=12), # Leaving manual fps out for now
|
157 |
],
|
158 |
+
outputs=gr.Video(),
|
159 |
title='AnimeGANV2 On Videos',
|
160 |
description="Applying AnimeGAN-V2 to frames from video clips",
|
161 |
article=article,
|
162 |
enable_queue=True,
|
|
|
|
|
|
|
163 |
allow_flagging=False,
|
164 |
)
|
165 |
|
166 |
iface_file = gr.Interface(
|
167 |
predict_fn,
|
168 |
inputs=[
|
169 |
+
gr.Video(source="upload"),
|
170 |
+
gr.Slider(minimum=0, maximum=300, step=1, default=0),
|
171 |
+
gr.Slider(minimum=1, maximum=10, step=1, default=2),
|
172 |
],
|
173 |
+
outputs=gr.Video(),
|
174 |
title='AnimeGANV2 On Videos',
|
175 |
description="Applying AnimeGAN-V2 to frames from video clips",
|
176 |
article=article,
|