nateraw commited on
Commit
9a0019a
1 Parent(s): 897362c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -11
app.py CHANGED
@@ -150,30 +150,27 @@ article = """
150
  iface_webcam = gr.Interface(
151
  predict_fn,
152
  inputs=[
153
- gr.inputs.Video(source="webcam"),
154
- gr.inputs.Slider(minimum=0, maximum=300, step=1, default=0),
155
- gr.inputs.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.outputs.Video(),
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.inputs.Video(source="upload"),
173
- gr.inputs.Slider(minimum=0, maximum=300, step=1, default=0),
174
- gr.inputs.Slider(minimum=1, maximum=10, step=1, default=2),
175
  ],
176
- outputs=gr.outputs.Video(),
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,