ernestchu commited on
Commit
ee03285
1 Parent(s): 601c811
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -192,12 +192,12 @@ def run_inference(url, sampling_interval, bs=526):
192
 
193
  return(title, thumb, image_output)
194
 
195
- inputs = [gr.inputs.Textbox(label="Give us the link to your youtube video! (maximum size 50 MB)"),
196
  gr.Number(1,label='sampling interval (seconds)')]
197
  outputs = [
198
- gr.outputs.HTML(label=""), # To be used as title
199
- gr.outputs.Image(label="Original thumbnail"),
200
- gr.outputs.Image(label="Top matches in the video"),
201
  ]
202
 
203
  article = "Adapted from [It Happened One Frame](https://huggingface.co/spaces/YiYiXu/it-happened-one-frame-2)."
@@ -214,5 +214,5 @@ gr.Interface(
214
  ['https://youtu.be/wJCXBGPo5c8', 1],
215
  ['https://youtu.be/RicOR0oHATY', 1]
216
  ]
217
- ).launch(debug=True,enable_queue=True,share=True)
218
 
 
192
 
193
  return(title, thumb, image_output)
194
 
195
+ inputs = [gr.Textbox(label="Give us the link to your youtube video! (maximum size 50 MB)"),
196
  gr.Number(1,label='sampling interval (seconds)')]
197
  outputs = [
198
+ gr.HTML(label=""), # To be used as title
199
+ gr.Image(label="Original thumbnail"),
200
+ gr.Image(label="Top matches in the video"),
201
  ]
202
 
203
  article = "Adapted from [It Happened One Frame](https://huggingface.co/spaces/YiYiXu/it-happened-one-frame-2)."
 
214
  ['https://youtu.be/wJCXBGPo5c8', 1],
215
  ['https://youtu.be/RicOR0oHATY', 1]
216
  ]
217
+ ).launch()
218