Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,19 @@ 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
else:
|
74 |
return "" # Return an empty string if no image is uploaded
|
75 |
|
|
|
69 |
"""Displays the uploaded image"""
|
70 |
img_src = uploaded_image_path()
|
71 |
if img_src:
|
72 |
+
return ui.value_box(
|
73 |
+
title,
|
74 |
+
count,
|
75 |
+
{"class_": "pt-1 pb-0"},
|
76 |
+
showcase=ui.fill.as_fill_item(
|
77 |
+
ui.tags.img(
|
78 |
+
{"style": "object-fit:contain;"},
|
79 |
+
src=showcase_img,
|
80 |
+
)
|
81 |
+
),
|
82 |
+
theme_color=None,
|
83 |
+
style=f"background-color: {bgcol};",
|
84 |
+
)
|
85 |
else:
|
86 |
return "" # Return an empty string if no image is uploaded
|
87 |
|