Update app.py
Browse files
app.py
CHANGED
@@ -140,29 +140,29 @@ with demo:
|
|
140 |
"""
|
141 |
)
|
142 |
|
143 |
-
with gr.Tab("Video"):
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
# with gr.Row():
|
154 |
# gr.Examples(examples=['./videos/hitting_baseball.mp4', './videos/hoverboarding.mp4', './videos/yoga.mp4'], inputs=input_video, outputs=label_video, fn=inference_video, cache_examples=True)
|
155 |
|
156 |
-
with gr.Tab("Image"):
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
# with gr.Row():
|
167 |
# gr.Examples(examples=['./images/cat.png', './images/dog.png', './images/panda.png'], inputs=input_image, outputs=label_image, fn=inference_image, cache_examples=True)
|
168 |
|
@@ -173,6 +173,6 @@ with demo:
|
|
173 |
)
|
174 |
|
175 |
submit_video_button.click(fn=inference_video, inputs=input_video, outputs=label_video)
|
176 |
-
submit_image_button.click(fn=inference_image, inputs=input_image, outputs=label_image)
|
177 |
|
178 |
demo.queue(max_size=20).launch()
|
|
|
140 |
"""
|
141 |
)
|
142 |
|
143 |
+
# with gr.Tab("Video"):
|
144 |
+
# # with gr.Box():
|
145 |
+
with gr.Row():
|
146 |
+
with gr.Column():
|
147 |
+
with gr.Row():
|
148 |
+
input_video = gr.Video(label='Input Video', height=360)
|
149 |
+
with gr.Row():
|
150 |
+
submit_video_button = gr.Button('Submit')
|
151 |
+
with gr.Column():
|
152 |
+
label_video = gr.Label(num_top_classes=5)
|
153 |
# with gr.Row():
|
154 |
# gr.Examples(examples=['./videos/hitting_baseball.mp4', './videos/hoverboarding.mp4', './videos/yoga.mp4'], inputs=input_video, outputs=label_video, fn=inference_video, cache_examples=True)
|
155 |
|
156 |
+
# with gr.Tab("Image"):
|
157 |
+
# # with gr.Box():
|
158 |
+
# with gr.Row():
|
159 |
+
# with gr.Column():
|
160 |
+
# with gr.Row():
|
161 |
+
# input_image = gr.Image(label='Input Image', type='pil', height=360)
|
162 |
+
# with gr.Row():
|
163 |
+
# submit_image_button = gr.Button('Submit')
|
164 |
+
# with gr.Column():
|
165 |
+
# label_image = gr.Label(num_top_classes=5)
|
166 |
# with gr.Row():
|
167 |
# gr.Examples(examples=['./images/cat.png', './images/dog.png', './images/panda.png'], inputs=input_image, outputs=label_image, fn=inference_image, cache_examples=True)
|
168 |
|
|
|
173 |
)
|
174 |
|
175 |
submit_video_button.click(fn=inference_video, inputs=input_video, outputs=label_video)
|
176 |
+
# submit_image_button.click(fn=inference_image, inputs=input_image, outputs=label_image)
|
177 |
|
178 |
demo.queue(max_size=20).launch()
|