Spaces:
Runtime error
Runtime error
fix runtime error by adding missing lines (#11)
Browse files- fix error (907f86e9b6be736f40da2a322933935852446bca)
Co-authored-by: Fatih C. Akyon <fcakyon@users.noreply.huggingface.co>
- app_gradio.py +7 -3
app_gradio.py
CHANGED
|
@@ -207,7 +207,11 @@ with gr.Blocks(css=css, title='Fast Segment Anything') as demo:
|
|
| 207 |
# News
|
| 208 |
gr.Markdown(news)
|
| 209 |
|
| 210 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 211 |
# Images
|
| 212 |
with gr.Row(variant="panel"):
|
| 213 |
with gr.Column(scale=1):
|
|
@@ -260,7 +264,7 @@ with gr.Blocks(css=css, title='Fast Segment Anything') as demo:
|
|
| 260 |
],
|
| 261 |
outputs=segm_img_e)
|
| 262 |
|
| 263 |
-
with
|
| 264 |
# Images
|
| 265 |
with gr.Row(variant="panel"):
|
| 266 |
with gr.Column(scale=1):
|
|
@@ -297,7 +301,7 @@ with gr.Blocks(css=css, title='Fast Segment Anything') as demo:
|
|
| 297 |
inputs=[cond_img_p],
|
| 298 |
outputs=[segm_img_p])
|
| 299 |
|
| 300 |
-
with
|
| 301 |
# Images
|
| 302 |
with gr.Row(variant="panel"):
|
| 303 |
with gr.Column(scale=1):
|
|
|
|
| 207 |
# News
|
| 208 |
gr.Markdown(news)
|
| 209 |
|
| 210 |
+
everything_tab = gr.Tab("Everything mode")
|
| 211 |
+
points_tab = gr.Tab("Points mode")
|
| 212 |
+
text_tab = gr.Tab("Text mode")
|
| 213 |
+
|
| 214 |
+
with everything_tab:
|
| 215 |
# Images
|
| 216 |
with gr.Row(variant="panel"):
|
| 217 |
with gr.Column(scale=1):
|
|
|
|
| 264 |
],
|
| 265 |
outputs=segm_img_e)
|
| 266 |
|
| 267 |
+
with points_tab:
|
| 268 |
# Images
|
| 269 |
with gr.Row(variant="panel"):
|
| 270 |
with gr.Column(scale=1):
|
|
|
|
| 301 |
inputs=[cond_img_p],
|
| 302 |
outputs=[segm_img_p])
|
| 303 |
|
| 304 |
+
with text_tab:
|
| 305 |
# Images
|
| 306 |
with gr.Row(variant="panel"):
|
| 307 |
with gr.Column(scale=1):
|