Trang Dang commited on
Commit
9b2c5d8
1 Parent(s): 55a5bfa
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -121,13 +121,13 @@ def server(input: Inputs, output: Outputs, session: Session):
121
  ]
122
 
123
  return ui.layout_column_wrap(*value_boxes, width = 1 / len(value_boxes))
124
-
125
  @output
126
  @render.image
127
  def image():
128
  here = Path(__file__).parent
129
  img = {"src": input.image_input()[0]['datapath'], "width": "500px"}
130
- return img
131
 
132
 
133
  # "darkorange", "purple", "cyan4"
 
121
  ]
122
 
123
  return ui.layout_column_wrap(*value_boxes, width = 1 / len(value_boxes))
124
+
125
  @output
126
  @render.image
127
  def image():
128
  here = Path(__file__).parent
129
  img = {"src": input.image_input()[0]['datapath'], "width": "500px"}
130
+ return img if img else None
131
 
132
 
133
  # "darkorange", "purple", "cyan4"