jatamura commited on
Commit
d6c63d6
·
verified ·
1 Parent(s): 0e93238

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -58,6 +58,7 @@ app_ui = ui.page_fluid(
58
  def plot_ui():
59
  opacity_slider = ui.input_slider("opacity_slider", "Opacity", 0, 1.0, 0.5)
60
  return ui.row(
 
61
  ui.output_plot("plot_prediction"),
62
  opacity_slider
63
  )
@@ -156,10 +157,6 @@ def server(input, output, session: Session):
156
 
157
  ui_output.append(
158
  ui.div(
159
- ui.row(
160
- ui.column(4, ui.img(src=f"data:image/png;base64,{r['image_base64']}")),
161
- plot_ui(f"plot_{idx}"),
162
- ),
163
  ui.h5(r['filename'], style="margin-top: 15px;"),
164
  ui.div(
165
  ui.span(f"Viable = {r.get('viable', '? ')}", style="margin: 0 15px;"),
@@ -168,6 +165,10 @@ def server(input, output, session: Session):
168
  ui.span(f"Total = {r.get('total', '? ')}", style="margin: 0 15px;"),
169
  class_="results-text"
170
  ),
 
 
 
 
171
  class_="card p-3"
172
  )
173
  )
 
58
  def plot_ui():
59
  opacity_slider = ui.input_slider("opacity_slider", "Opacity", 0, 1.0, 0.5)
60
  return ui.row(
61
+ 4,
62
  ui.output_plot("plot_prediction"),
63
  opacity_slider
64
  )
 
157
 
158
  ui_output.append(
159
  ui.div(
 
 
 
 
160
  ui.h5(r['filename'], style="margin-top: 15px;"),
161
  ui.div(
162
  ui.span(f"Viable = {r.get('viable', '? ')}", style="margin: 0 15px;"),
 
165
  ui.span(f"Total = {r.get('total', '? ')}", style="margin: 0 15px;"),
166
  class_="results-text"
167
  ),
168
+ ui.row(
169
+ ui.column(4, ui.img(src=f"data:image/png;base64,{r['image_base64']}")),
170
+ plot_ui(f"plot_{idx}"),
171
+ ),
172
  class_="card p-3"
173
  )
174
  )