jatamura commited on
Commit
acf2980
·
verified ·
1 Parent(s): 0606128

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -101,7 +101,7 @@ def server(input, output, session: Session):
101
  [ui.div(
102
  ui.row(
103
  ui.column(4, ui.img(src=f"data:image/png;base64,{r['image']}")),
104
- ui.column(4, ui.output_plot("output", result=r)),
105
  ),
106
  ui.h5(r['filename'], style="margin-top: 15px;"),
107
  ui.div(
@@ -115,12 +115,12 @@ def server(input, output, session: Session):
115
  ) for r in results]
116
  )
117
 
118
- @render.plot
119
- def output(result):
120
- fig = plt.imshow(cv2.imread(r['image']))
121
- print(result)
122
 
123
- return fig
124
 
125
  @session.download()
126
  def download():
 
101
  [ui.div(
102
  ui.row(
103
  ui.column(4, ui.img(src=f"data:image/png;base64,{r['image']}")),
104
+ # ui.column(4, ui.output_plot("output", result=r)),
105
  ),
106
  ui.h5(r['filename'], style="margin-top: 15px;"),
107
  ui.div(
 
115
  ) for r in results]
116
  )
117
 
118
+ # @render.plot
119
+ # def output(result):
120
+ # fig = plt.imshow(cv2.imread(r['image']))
121
+ # print(result)
122
 
123
+ # return fig
124
 
125
  @session.download()
126
  def download():