Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -111,7 +111,7 @@ def server(input, output, session: Session):
|
|
| 111 |
ui.div(
|
| 112 |
ui.row(
|
| 113 |
ui.column(4, ui.img(src=f"data:image/png;base64,{r['image_base64']}")),
|
| 114 |
-
ui.column(4, ui.output_plot("plot_" + str(
|
| 115 |
),
|
| 116 |
opacity,
|
| 117 |
ui.h5(r['filename'], style="margin-top: 15px;"),
|
|
@@ -129,7 +129,6 @@ def server(input, output, session: Session):
|
|
| 129 |
@output(id="plot_" + str(i))
|
| 130 |
@render.plot
|
| 131 |
def plot_prediction():
|
| 132 |
-
r = results[0]
|
| 133 |
fig, ax = plt.subplots()
|
| 134 |
|
| 135 |
# ax = plt.Axes(fig, [0., 0., 1., 1.])
|
|
|
|
| 111 |
ui.div(
|
| 112 |
ui.row(
|
| 113 |
ui.column(4, ui.img(src=f"data:image/png;base64,{r['image_base64']}")),
|
| 114 |
+
ui.column(4, ui.output_plot("plot_" + str(0))),
|
| 115 |
),
|
| 116 |
opacity,
|
| 117 |
ui.h5(r['filename'], style="margin-top: 15px;"),
|
|
|
|
| 129 |
@output(id="plot_" + str(i))
|
| 130 |
@render.plot
|
| 131 |
def plot_prediction():
|
|
|
|
| 132 |
fig, ax = plt.subplots()
|
| 133 |
|
| 134 |
# ax = plt.Axes(fig, [0., 0., 1., 1.])
|