Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ app_ui = ui.page_fillable(
|
|
21 |
shinyswatch.theme.minty(),
|
22 |
ui.layout_sidebar(
|
23 |
ui.sidebar(
|
24 |
-
ui.input_file("tile_image", "Choose TIFF File", accept=[".tif"], multiple=False
|
25 |
# Artwork by @allison_horst
|
26 |
ui.input_selectize(
|
27 |
"xvar",
|
@@ -69,7 +69,7 @@ def server(input: Inputs, output: Outputs, session: Session):
|
|
69 |
"""Displays the uploaded image"""
|
70 |
img_src = uploaded_image_path()
|
71 |
if img_src:
|
72 |
-
return str(ui.tags.img(src=
|
73 |
else:
|
74 |
return "" # Return an empty string if no image is uploaded
|
75 |
|
|
|
21 |
shinyswatch.theme.minty(),
|
22 |
ui.layout_sidebar(
|
23 |
ui.sidebar(
|
24 |
+
ui.input_file("tile_image", "Choose TIFF File", accept=[".tif"], multiple=False),
|
25 |
# Artwork by @allison_horst
|
26 |
ui.input_selectize(
|
27 |
"xvar",
|
|
|
69 |
"""Displays the uploaded image"""
|
70 |
img_src = uploaded_image_path()
|
71 |
if img_src:
|
72 |
+
return str(ui.tags.img(src="penguins.png", style={"max-width": "100%"}))
|
73 |
else:
|
74 |
return "" # Return an empty string if no image is uploaded
|
75 |
|