aagoluoglu commited on
Commit
dcf6ed2
·
verified ·
1 Parent(s): b4e14ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
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 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
 
 
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