Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files- .gitattributes +4 -0
- app.py +7 -2
- examples/example_1.png +3 -0
- examples/example_2.png +3 -0
- examples/example_3.png +3 -0
- examples/example_4.png +3 -0
.gitattributes
CHANGED
|
@@ -36,3 +36,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 36 |
models/sam/notebooks/images/groceries.jpg filter=lfs diff=lfs merge=lfs -text
|
| 37 |
models/sam/notebooks/images/truck.jpg filter=lfs diff=lfs merge=lfs -text
|
| 38 |
examples/sample_surgical.png filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
models/sam/notebooks/images/groceries.jpg filter=lfs diff=lfs merge=lfs -text
|
| 37 |
models/sam/notebooks/images/truck.jpg filter=lfs diff=lfs merge=lfs -text
|
| 38 |
examples/sample_surgical.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
examples/example_1.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
examples/example_2.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
examples/example_3.png filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
examples/example_4.png filter=lfs diff=lfs merge=lfs -text
|
app.py
CHANGED
|
@@ -290,9 +290,14 @@ with gr.Blocks(title="Surgical-DeSAM", theme=gr.themes.Soft()) as demo:
|
|
| 290 |
image_btn.click(fn=predict_image, inputs=input_image, outputs=output_image)
|
| 291 |
|
| 292 |
gr.Examples(
|
| 293 |
-
examples=[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 294 |
inputs=input_image,
|
| 295 |
-
label="Example Images"
|
| 296 |
)
|
| 297 |
|
| 298 |
# Video Tab
|
|
|
|
| 290 |
image_btn.click(fn=predict_image, inputs=input_image, outputs=output_image)
|
| 291 |
|
| 292 |
gr.Examples(
|
| 293 |
+
examples=[
|
| 294 |
+
"examples/example_1.png",
|
| 295 |
+
"examples/example_2.png",
|
| 296 |
+
"examples/example_3.png",
|
| 297 |
+
"examples/example_4.png",
|
| 298 |
+
],
|
| 299 |
inputs=input_image,
|
| 300 |
+
label="Example Surgical Images"
|
| 301 |
)
|
| 302 |
|
| 303 |
# Video Tab
|
examples/example_1.png
ADDED
|
Git LFS Details
|
examples/example_2.png
ADDED
|
Git LFS Details
|
examples/example_3.png
ADDED
|
Git LFS Details
|
examples/example_4.png
ADDED
|
Git LFS Details
|