Spaces:
Runtime error
Runtime error
ernestchu
commited on
Commit
·
ee03285
1
Parent(s):
601c811
update
Browse files
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.
|
196 |
gr.Number(1,label='sampling interval (seconds)')]
|
197 |
outputs = [
|
198 |
-
gr.
|
199 |
-
gr.
|
200 |
-
gr.
|
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(
|
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 |
|