Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ def server(input: Inputs, output: Outputs, session: Session):
|
|
81 |
img_src = uploaded_image_path()
|
82 |
if img_src:
|
83 |
dir = Path(__file__).resolve().parent
|
84 |
-
img: ImgData = {"src": str(dir / uploaded_image_path()), "width": "100px"}
|
85 |
return img
|
86 |
else:
|
87 |
return "" # Return an empty string if no image is uploaded
|
|
|
81 |
img_src = uploaded_image_path()
|
82 |
if img_src:
|
83 |
dir = Path(__file__).resolve().parent
|
84 |
+
img: ImgData = {"src": str(dir / str(uploaded_image_path())), "width": "100px"}
|
85 |
return img
|
86 |
else:
|
87 |
return "" # Return an empty string if no image is uploaded
|