Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -73,10 +73,11 @@ def server(input: Inputs, output: Outputs, session: Session):
|
|
73 |
# else:
|
74 |
# return "" # Return an empty string if no image is uploaded
|
75 |
|
|
|
76 |
@render.image
|
77 |
def uploaded_image():
|
78 |
img_src = uploaded_image_path()
|
79 |
-
img: ImgData = {"src":
|
80 |
return img
|
81 |
|
82 |
@reactive.Calc
|
|
|
73 |
# else:
|
74 |
# return "" # Return an empty string if no image is uploaded
|
75 |
|
76 |
+
@output
|
77 |
@render.image
|
78 |
def uploaded_image():
|
79 |
img_src = uploaded_image_path()
|
80 |
+
img: ImgData = {"src": img_src, "width": "100px"}
|
81 |
return img
|
82 |
|
83 |
@reactive.Calc
|