Spaces:
Runtime error
Runtime error
Commit ·
74cfe76
1
Parent(s): e0808f1
Update app.py
Browse files
app.py
CHANGED
|
@@ -152,9 +152,7 @@ def count(im):
|
|
| 152 |
else:
|
| 153 |
return cv2.flip(img[:,:,::-1],1)
|
| 154 |
|
| 155 |
-
with gr.Blocks() as demo:
|
| 156 |
-
gr.HTML("<center><img style='text-align:center;' src='https://img.freepik.com/free-photo/3d-render-count-fingers-set-hands-counting_107791-15400.jpg?w=826&t=st=1665601182~exp=1665601782~hmac=1ca329157a8c4447f304fc674a69f59b7e96b68d2f8afa3f086c7cb7a58b2597' alt='sample'></center>")
|
| 157 |
-
|
| 158 |
with gr.Tabs():
|
| 159 |
with gr.TabItem('Upload'):
|
| 160 |
with gr.Row():
|
|
@@ -163,7 +161,7 @@ with gr.Blocks() as demo:
|
|
| 163 |
image_button = gr.Button("Submit")
|
| 164 |
|
| 165 |
with gr.Column():
|
| 166 |
-
output = gr.Image()
|
| 167 |
with gr.Row():
|
| 168 |
example_images = gr.Dataset(components=[img_input],samples=[["ex2.jpg"]])
|
| 169 |
|
|
|
|
| 152 |
else:
|
| 153 |
return cv2.flip(img[:,:,::-1],1)
|
| 154 |
|
| 155 |
+
with gr.Blocks(title="Right Hand Finger Counting | Data Science Dojo", css="footer {display:none !important} .output-markdown{display:none !important} #out_image {height: 22rem !important;}") as demo:
|
|
|
|
|
|
|
| 156 |
with gr.Tabs():
|
| 157 |
with gr.TabItem('Upload'):
|
| 158 |
with gr.Row():
|
|
|
|
| 161 |
image_button = gr.Button("Submit")
|
| 162 |
|
| 163 |
with gr.Column():
|
| 164 |
+
output = gr.Image(shape=(640,480), elem_id="out_image")
|
| 165 |
with gr.Row():
|
| 166 |
example_images = gr.Dataset(components=[img_input],samples=[["ex2.jpg"]])
|
| 167 |
|