Tobias Cornille
commited on
Commit
•
78caf63
1
Parent(s):
99894bc
Downgrade Gradio
Browse files
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🖼️🪄
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: red
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 3.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: red
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 3.16.2
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
app.py
CHANGED
@@ -3,9 +3,6 @@ import subprocess, os, sys
|
|
3 |
result = subprocess.run(["pip", "install", "-e", "GroundingDINO"], check=True)
|
4 |
print(f"pip install GroundingDINO = {result}")
|
5 |
|
6 |
-
result = subprocess.run(["pip", "install", "gradio==3.27.0"], check=True)
|
7 |
-
print(f"pip install gradio==3.27.0 = {result}")
|
8 |
-
|
9 |
sys.path.insert(0, "./GroundingDINO")
|
10 |
|
11 |
if not os.path.exists("./sam_vit_h_4b8939.pth"):
|
@@ -498,12 +495,7 @@ inputs = [
|
|
498 |
),
|
499 |
]
|
500 |
|
501 |
-
outputs =
|
502 |
-
gr.Image(type="pil", label="Segmentation bitmap"),
|
503 |
-
gr.Textbox(
|
504 |
-
label="Annotations JSON",
|
505 |
-
),
|
506 |
-
]
|
507 |
title = "Panoptic Segment Anything API"
|
508 |
|
509 |
demo_app = gr.Interface(
|
|
|
3 |
result = subprocess.run(["pip", "install", "-e", "GroundingDINO"], check=True)
|
4 |
print(f"pip install GroundingDINO = {result}")
|
5 |
|
|
|
|
|
|
|
6 |
sys.path.insert(0, "./GroundingDINO")
|
7 |
|
8 |
if not os.path.exists("./sam_vit_h_4b8939.pth"):
|
|
|
495 |
),
|
496 |
]
|
497 |
|
498 |
+
outputs = gr.Image(type="pil", label="Segmentation bitmap")
|
|
|
|
|
|
|
|
|
|
|
499 |
title = "Panoptic Segment Anything API"
|
500 |
|
501 |
demo_app = gr.Interface(
|