Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ def server(input: Inputs, output: Outputs, session: Session):
|
|
59 |
def uploaded_image_path() -> str:
|
60 |
"""Returns the path to the uploaded image"""
|
61 |
if input.tile_image() is not None:
|
62 |
-
return input.tile_image()[0]
|
63 |
else:
|
64 |
return "" # No image uploaded
|
65 |
|
|
|
59 |
def uploaded_image_path() -> str:
|
60 |
"""Returns the path to the uploaded image"""
|
61 |
if input.tile_image() is not None:
|
62 |
+
return input.tile_image()[0]['datapath'] # Assuming multiple=False
|
63 |
else:
|
64 |
return "" # No image uploaded
|
65 |
|