Spaces:
Runtime error
Runtime error
Commit
·
b0b192f
1
Parent(s):
f4e48c8
Update app.py
Browse files
app.py
CHANGED
@@ -126,7 +126,8 @@ def server(input: Inputs, output: Outputs, session: Session):
|
|
126 |
"""Displays the uploaded image"""
|
127 |
img_src = uploaded_image_path()
|
128 |
if img_src:
|
129 |
-
|
|
|
130 |
print("IMAGE", img)
|
131 |
return img
|
132 |
else:
|
|
|
126 |
"""Displays the uploaded image"""
|
127 |
img_src = uploaded_image_path()
|
128 |
if img_src:
|
129 |
+
dir = Path(__file__).resolve().parent
|
130 |
+
img: ImgData = {"src": str(dir / img_src), "width": "50px"}
|
131 |
print("IMAGE", img)
|
132 |
return img
|
133 |
else:
|