Spaces:
Runtime error
Runtime error
Francisco Cerna Fukuzaki
commited on
Commit
·
20b1214
1
Parent(s):
c3ba8f8
Logo
Browse files
app.py
CHANGED
@@ -14,7 +14,8 @@ demo = gr.Blocks()
|
|
14 |
with demo:
|
15 |
|
16 |
gr.Markdown("# **<p align='center'>Video Classification with Transformers</p>**")
|
17 |
-
gr.Markdown("
|
|
|
18 |
|
19 |
with gr.Tabs():
|
20 |
|
@@ -32,15 +33,13 @@ with demo:
|
|
32 |
with gr.Row():
|
33 |
submit_button = gr.Button("Submit")
|
34 |
|
35 |
-
gr.Markdown("**
|
36 |
-
gr.Markdown("
|
37 |
# gr.Markdown("CricketShot, PlayingCello, Punch, ShavingBeard, TennisSwing")
|
38 |
|
39 |
with gr.Column():
|
40 |
gr.Examples(example_list, [input_video], [output_label,output_gif], predict_action, cache_examples=True)
|
41 |
|
42 |
submit_button.click(predict_action, inputs=input_video, outputs=[output_label,output_gif])
|
43 |
-
|
44 |
-
gr.Markdown('\n Demo created by: <a href=\"https://www.linkedin.com/in/shivalika-singh/\">Shivalika Singh</a> <br> Based on this <a href=\"https://keras.io/examples/vision/video_transformers/\">Keras example</a> by <a href=\"https://twitter.com/RisingSayak\">Sayak Paul</a> <br> Demo Powered by this <a href=\"https://huggingface.co/shivi/video-transformers/\"> Video Classification</a> model')
|
45 |
-
|
46 |
demo.launch()
|
|
|
14 |
with demo:
|
15 |
|
16 |
gr.Markdown("# **<p align='center'>Video Classification with Transformers</p>**")
|
17 |
+
gr.Markdown("Demo de clasificador de video usando modelo híbrido basado en Transformers con CNN, el objetivo es reconocer un segemento y recortarlo.")
|
18 |
+
gr.Markdown("# <img src='https://raw.githubusercontent.com/All-Aideas/sea_apirest/main/logo.png' alt='logo' width='250'/>")
|
19 |
|
20 |
with gr.Tabs():
|
21 |
|
|
|
33 |
with gr.Row():
|
34 |
submit_button = gr.Button("Submit")
|
35 |
|
36 |
+
gr.Markdown("**Ejemplos:**")
|
37 |
+
gr.Markdown("El modelo puede clasificar videos pertenecientes a las siguientes clases: CricketShot, PlayingCello, Punch, ShavingBeard, TennisSwing.")
|
38 |
# gr.Markdown("CricketShot, PlayingCello, Punch, ShavingBeard, TennisSwing")
|
39 |
|
40 |
with gr.Column():
|
41 |
gr.Examples(example_list, [input_video], [output_label,output_gif], predict_action, cache_examples=True)
|
42 |
|
43 |
submit_button.click(predict_action, inputs=input_video, outputs=[output_label,output_gif])
|
44 |
+
|
|
|
|
|
45 |
demo.launch()
|