Spaces:
Sleeping
Sleeping
Deploy latest YOLO model and app (version 20250422.7)
Browse files- README.md +1 -1
- app.py +1 -1
- requirements.txt +1 -1
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🧬
|
|
4 |
colorFrom: blue
|
5 |
colorTo: indigo
|
6 |
sdk: gradio
|
7 |
-
sdk_version: "4.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
|
|
4 |
colorFrom: blue
|
5 |
colorTo: indigo
|
6 |
sdk: gradio
|
7 |
+
sdk_version: "4.26.0"
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
app.py
CHANGED
@@ -37,7 +37,7 @@ def segment(image: Image.Image):
|
|
37 |
mask_img = Image.fromarray((mask * 255).astype(np.uint8))
|
38 |
mask_img = mask_img.resize(image.size) # Ensure mask matches input size
|
39 |
# Return both the mask and version in the API response
|
40 |
-
return
|
41 |
|
42 |
iface = gr.Interface(
|
43 |
fn=segment,
|
|
|
37 |
mask_img = Image.fromarray((mask * 255).astype(np.uint8))
|
38 |
mask_img = mask_img.resize(image.size) # Ensure mask matches input size
|
39 |
# Return both the mask and version in the API response
|
40 |
+
return mask_img, VERSION # Return as tuple for Gradio
|
41 |
|
42 |
iface = gr.Interface(
|
43 |
fn=segment,
|
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
gradio>=4.
|
2 |
pillow
|
3 |
# Add your model dependencies below, e.g.:
|
4 |
ultralytics
|
|
|
1 |
+
gradio>=4.26.0
|
2 |
pillow
|
3 |
# Add your model dependencies below, e.g.:
|
4 |
ultralytics
|