aagoluoglu commited on
Commit
0d45547
·
verified ·
1 Parent(s): d8a4f0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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": str(img_src), "width": "100px"}
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