Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,23 +24,23 @@ image_interface = gr.Interface(
|
|
| 24 |
title="Arab Sign Language Detection app",
|
| 25 |
examples=path,
|
| 26 |
cache_examples=False,
|
| 27 |
-
)
|
| 28 |
-
inputs_video = [
|
| 29 |
-
gr.components.Video(type='filepath',label='Input Video'),
|
| 30 |
-
]
|
| 31 |
-
outputs_video = [
|
| 32 |
-
gr.components.Image(type='numpy',label='Output Video')
|
| 33 |
-
]
|
| 34 |
-
interface_video = gr.Interface(
|
| 35 |
-
fn=video_inference,
|
| 36 |
-
inputs=inputs_video,
|
| 37 |
-
outputs=outputs_video,
|
| 38 |
-
title="Arab Sign Language Detection app",
|
| 39 |
-
examples=video_path,
|
| 40 |
-
cache_examples=False,
|
| 41 |
-
)
|
| 42 |
-
|
| 43 |
-
gr.TabbedInterface(
|
| 44 |
-
[image_interface, interface_video],
|
| 45 |
-
tab_names=['Image inference', 'Video inference']
|
| 46 |
-
).queue().launch()
|
|
|
|
| 24 |
title="Arab Sign Language Detection app",
|
| 25 |
examples=path,
|
| 26 |
cache_examples=False,
|
| 27 |
+
).launch()
|
| 28 |
+
#inputs_video = [
|
| 29 |
+
# gr.components.Video(type='filepath',label='Input Video'),
|
| 30 |
+
#]
|
| 31 |
+
#outputs_video = [
|
| 32 |
+
# gr.components.Image(type='numpy',label='Output Video')
|
| 33 |
+
#]
|
| 34 |
+
#interface_video = gr.Interface(
|
| 35 |
+
# fn=video_inference,
|
| 36 |
+
# inputs=inputs_video,
|
| 37 |
+
# outputs=outputs_video,
|
| 38 |
+
# title="Arab Sign Language Detection app",
|
| 39 |
+
# examples=video_path,
|
| 40 |
+
# cache_examples=False,
|
| 41 |
+
#)
|
| 42 |
+
#
|
| 43 |
+
#gr.TabbedInterface(
|
| 44 |
+
# [image_interface, interface_video],
|
| 45 |
+
# tab_names=['Image inference', 'Video inference']
|
| 46 |
+
#).queue().launch()
|