Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -132,12 +132,6 @@ def inference_image(img):
|
|
132 |
|
133 |
demo = gr.Blocks()
|
134 |
with demo:
|
135 |
-
gr.Markdown(
|
136 |
-
"""
|
137 |
-
# VideoMamba-Ti
|
138 |
-
Gradio demo for <a href='https://github.com/OpenGVLab/VideoMamba' target='_blank'>VideoMamba</a>: To use it, simply upload your video, or click one of the examples to load them. Read more at the links below.
|
139 |
-
"""
|
140 |
-
)
|
141 |
|
142 |
with gr.Tab("Video"):
|
143 |
# with gr.Box():
|
@@ -165,11 +159,6 @@ with demo:
|
|
165 |
with gr.Row():
|
166 |
gr.Examples(examples=['./images/cat.png', './images/dog.png', './images/panda.png'], inputs=input_image, outputs=label_image, fn=inference_image, cache_examples=True)
|
167 |
|
168 |
-
gr.Markdown(
|
169 |
-
"""
|
170 |
-
<p style='text-align: center'><a href='https://arxiv.org/abs/2403.06977' target='_blank'>VideoMamba: State Space Model for Efficient Video Understanding</a> | <a href='https://github.com/OpenGVLab/VideoMamba' target='_blank'>Github Repo</a></p>
|
171 |
-
"""
|
172 |
-
)
|
173 |
|
174 |
submit_video_button.click(fn=inference_video, inputs=input_video, outputs=label_video)
|
175 |
submit_image_button.click(fn=inference_image, inputs=input_image, outputs=label_image)
|
|
|
132 |
|
133 |
demo = gr.Blocks()
|
134 |
with demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
|
136 |
with gr.Tab("Video"):
|
137 |
# with gr.Box():
|
|
|
159 |
with gr.Row():
|
160 |
gr.Examples(examples=['./images/cat.png', './images/dog.png', './images/panda.png'], inputs=input_image, outputs=label_image, fn=inference_image, cache_examples=True)
|
161 |
|
|
|
|
|
|
|
|
|
|
|
162 |
|
163 |
submit_video_button.click(fn=inference_video, inputs=input_video, outputs=label_video)
|
164 |
submit_image_button.click(fn=inference_image, inputs=input_image, outputs=label_image)
|