Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,9 @@ ins = instanceSegmentation()
|
|
| 6 |
ins.load_model("https://github.com/ayoolaolafenwa/PixelLib/releases/download/0.2.0/pointrend_resnet50.pkl")
|
| 7 |
def seg(inp):
|
| 8 |
|
| 9 |
-
ins.segmentImage(f"{inp}", show_bboxes=True, output_image_name="output_image.jpg")
|
|
|
|
|
|
|
| 10 |
return "output_image.jpg"
|
| 11 |
|
| 12 |
gr.Interface(
|
|
|
|
| 6 |
ins.load_model("https://github.com/ayoolaolafenwa/PixelLib/releases/download/0.2.0/pointrend_resnet50.pkl")
|
| 7 |
def seg(inp):
|
| 8 |
|
| 9 |
+
results, output = ins.segmentImage(f"{inp}", show_bboxes=True, output_image_name="output_image.jpg")
|
| 10 |
+
#results, output = ins.segmentImage("image.jpg", show_bboxes=True, output_image_name="result.jpg")
|
| 11 |
+
print (results)
|
| 12 |
return "output_image.jpg"
|
| 13 |
|
| 14 |
gr.Interface(
|