Spaces:
Runtime error
Runtime error
asd
Browse files
app.py
CHANGED
|
@@ -23,6 +23,7 @@ def load_images():
|
|
| 23 |
|
| 24 |
|
| 25 |
with gr.Blocks() as demo:
|
|
|
|
| 26 |
with gr.Row():
|
| 27 |
with gr.Column():
|
| 28 |
gr.Label("Today's Predicted Image")
|
|
@@ -37,7 +38,7 @@ with gr.Blocks() as demo:
|
|
| 37 |
with gr.Column():
|
| 38 |
gr.Label("Confusion Maxtrix with Historical Prediction Performance")
|
| 39 |
input_img = gr.Image("wine_confusion_matrix.png", elem_id="confusion-matrix")
|
| 40 |
-
|
| 41 |
|
| 42 |
load_images()
|
| 43 |
demo.launch(share = True)
|
|
|
|
| 23 |
|
| 24 |
|
| 25 |
with gr.Blocks() as demo:
|
| 26 |
+
demo.load(load_images)
|
| 27 |
with gr.Row():
|
| 28 |
with gr.Column():
|
| 29 |
gr.Label("Today's Predicted Image")
|
|
|
|
| 38 |
with gr.Column():
|
| 39 |
gr.Label("Confusion Maxtrix with Historical Prediction Performance")
|
| 40 |
input_img = gr.Image("wine_confusion_matrix.png", elem_id="confusion-matrix")
|
| 41 |
+
|
| 42 |
|
| 43 |
load_images()
|
| 44 |
demo.launch(share = True)
|