Spaces:
Runtime error
Runtime error
Commit
·
2480254
1
Parent(s):
0e655b9
Update app.py
Browse files
app.py
CHANGED
|
@@ -97,7 +97,7 @@ def sign(img):
|
|
| 97 |
def set_example_image(example: list) -> dict:
|
| 98 |
return gr.inputs.Image.update(value=example[0])
|
| 99 |
|
| 100 |
-
with gr.Blocks(title="American Sign Language Detection | Data Science Dojo", css="footer {display:none !important} .output-markdown{display:none !important}") as demo:
|
| 101 |
|
| 102 |
with gr.Tabs():
|
| 103 |
with gr.TabItem('Upload'):
|
|
@@ -107,7 +107,7 @@ with gr.Blocks(title="American Sign Language Detection | Data Science Dojo", css
|
|
| 107 |
image_button = gr.Button("Submit")
|
| 108 |
|
| 109 |
with gr.Column():
|
| 110 |
-
output = gr.Image(shape=(640,480))
|
| 111 |
with gr.Row():
|
| 112 |
example_images = gr.Dataset(components=[img_input],samples=[["ex2.jpg"]])
|
| 113 |
|
|
|
|
| 97 |
def set_example_image(example: list) -> dict:
|
| 98 |
return gr.inputs.Image.update(value=example[0])
|
| 99 |
|
| 100 |
+
with gr.Blocks(title="American Sign Language Detection | Data Science Dojo", css="footer {display:none !important} .output-markdown{display:none !important} #out_image {height: 22rem !important;}") as demo:
|
| 101 |
|
| 102 |
with gr.Tabs():
|
| 103 |
with gr.TabItem('Upload'):
|
|
|
|
| 107 |
image_button = gr.Button("Submit")
|
| 108 |
|
| 109 |
with gr.Column():
|
| 110 |
+
output = gr.Image(shape=(640,480), elem_id="out_image")
|
| 111 |
with gr.Row():
|
| 112 |
example_images = gr.Dataset(components=[img_input],samples=[["ex2.jpg"]])
|
| 113 |
|