jbilcke-hf commited on
Commit
11136b4
·
1 Parent(s): 690f215

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -31
app.py CHANGED
@@ -126,28 +126,7 @@ def infer(video_in,interpolation,fps_output):
126
 
127
  return final_vid, files
128
 
129
- title="""
130
- <div style="text-align: center; max-width: 500px; margin: 0 auto;">
131
- <div
132
- style="
133
- display: inline-flex;
134
- align-items: center;
135
- gap: 0.8rem;
136
- font-size: 1.75rem;
137
- margin-bottom: 10px;
138
- "
139
- >
140
- <h1 style="font-weight: 600; margin-bottom: 7px;">
141
- Video interpolation with FILM
142
- </h1>
143
-
144
- </div>
145
- <p> This space uses FILM to generate interpolation frames in a video you need to fluidify.<br />
146
- Generation is limited to 4 seconds, from the beginning of your video input.<br />
147
- <a style="display:inline-block" href="https://huggingface.co/spaces/fffiloni/video_frame_interpolation?duplicate=true"><img src="https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14" alt="Duplicate Space"></a>
148
- </p>
149
- </div>
150
- """
151
 
152
  with gr.Blocks() as demo:
153
  with gr.Column():
@@ -157,20 +136,13 @@ with gr.Blocks() as demo:
157
  video_input = gr.Video(source="upload", type="filepath")
158
  with gr.Row():
159
  interpolation = gr.Slider(minimum=1,maximum=4,step=1, value=1, label="Interpolation Steps")
160
- fps_output = gr.Radio([8, 12, 24], label="FPS output", value=8)
161
  submit_btn = gr.Button("Submit")
162
 
163
  with gr.Column():
164
  video_output = gr.Video()
165
  file_output = gr.File()
166
-
167
- gr.Examples(
168
- examples=[["./examples/yoda-fps2.mp4", 1, 12]],
169
- fn=infer,
170
- inputs=[video_input,interpolation,fps_output],
171
- outputs=[video_output,file_output],
172
- cache_examples=True
173
- )
174
 
175
  submit_btn.click(fn=infer, inputs=[video_input,interpolation,fps_output], outputs=[video_output, file_output])
176
 
 
126
 
127
  return final_vid, files
128
 
129
+ title="""test space"""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
 
131
  with gr.Blocks() as demo:
132
  with gr.Column():
 
136
  video_input = gr.Video(source="upload", type="filepath")
137
  with gr.Row():
138
  interpolation = gr.Slider(minimum=1,maximum=4,step=1, value=1, label="Interpolation Steps")
139
+ fps_output = gr.Radio([8, 12, 24], label="FPS output", value=24)
140
  submit_btn = gr.Button("Submit")
141
 
142
  with gr.Column():
143
  video_output = gr.Video()
144
  file_output = gr.File()
145
+
 
 
 
 
 
 
 
146
 
147
  submit_btn.click(fn=infer, inputs=[video_input,interpolation,fps_output], outputs=[video_output, file_output])
148