Spaces:
Runtime error
Runtime error
ss
Browse files- gradio_seg2image.py +1 -1
gradio_seg2image.py
CHANGED
@@ -9,7 +9,7 @@ def dummyfun(result_gallery):
|
|
9 |
print(f"first elem of gallery is ^^ - {result_gallery[0]}")
|
10 |
print(f"first elem of gallery is ^^ - {result_gallery[1]}")
|
11 |
# Load the image
|
12 |
-
image = result_gallery[1]
|
13 |
|
14 |
# Get the filename
|
15 |
filename = image.filename
|
|
|
9 |
print(f"first elem of gallery is ^^ - {result_gallery[0]}")
|
10 |
print(f"first elem of gallery is ^^ - {result_gallery[1]}")
|
11 |
# Load the image
|
12 |
+
image = result_gallery[1] #Image.open("example.jpg")
|
13 |
|
14 |
# Get the filename
|
15 |
filename = image.filename
|