freealise commited on
Commit
374f33e
1 Parent(s): 5777cf8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -128,6 +128,7 @@ def infer(url_in,interpolation,fps_output):
128
 
129
  return final_vid, files
130
 
 
131
  title="""
132
  <div style="text-align: center; max-width: 500px; margin: 0 auto;">
133
  <div
@@ -158,9 +159,12 @@ with gr.Blocks() as demo:
158
  with gr.Column():
159
  url_input = gr.Textbox(value="./examples/streetview.mp4", label="URL")
160
  with gr.Row():
161
- interpolation = math.pow(2, gr.Slider(minimum=0, maximum=5, step=1, value=0, label="Interpolation Steps: " + interpolation))
162
- #gr.Radio([1, 2, 4, 8, 16, 32], value=4, label="Interpolation Steps")
163
- fps_output = math.pow(2, gr.Slider(minimum=0, maximum=5, step=1, value=5, label="FPS output: " + fps_output))
 
 
 
164
  submit_btn = gr.Button("Submit")
165
 
166
  with gr.Column():
 
128
 
129
  return final_vid, files
130
 
131
+
132
  title="""
133
  <div style="text-align: center; max-width: 500px; margin: 0 auto;">
134
  <div
 
159
  with gr.Column():
160
  url_input = gr.Textbox(value="./examples/streetview.mp4", label="URL")
161
  with gr.Row():
162
+ interpolation = math.pow(2, gr.Slider(minimum=0, maximum=5, step=1, value=0, label="Interpolation Steps: "))
163
+ interpolation_label = gr.Label(value=interpolation.value)
164
+ interpolation.input(inputs=[interpolation], outputs=[interpolation_label])
165
+ fps_output = math.pow(2, gr.Slider(minimum=0, maximum=5, step=1, value=5, label="FPS output: "))
166
+ fps_output_label = gr.Label(value=fps_output.value)
167
+ fps_output.input(inputs=[fps_output], outputs=[fps_output_label])
168
  submit_btn = gr.Button("Submit")
169
 
170
  with gr.Column():