Spaces:
Sleeping
Sleeping
Maria Halvarsson
commited on
Commit
•
0b21953
1
Parent(s):
64568b4
Updated monitor
Browse files
app.py
CHANGED
@@ -9,23 +9,23 @@ fs = project.get_feature_store()
|
|
9 |
|
10 |
dataset_api = project.get_dataset_api()
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
|
17 |
with gr.Blocks() as demo:
|
18 |
with gr.Row():
|
19 |
with gr.Column():
|
20 |
-
gr.Label("Today's Predicted Wine
|
21 |
-
|
22 |
with gr.Column():
|
23 |
-
gr.Label("Today's Actual Wine
|
24 |
-
|
25 |
with gr.Row():
|
26 |
with gr.Column():
|
27 |
gr.Label("Recent Prediction History")
|
28 |
-
|
29 |
with gr.Column():
|
30 |
gr.Label("Confusion Maxtrix with Historical Prediction Performance")
|
31 |
#input_img = gr.Image("confusion_matrix.png", elem_id="confusion-matrix")
|
|
|
9 |
|
10 |
dataset_api = project.get_dataset_api()
|
11 |
|
12 |
+
dataset_api.download("Resources/wine_images/latest_wine.png") # fix later
|
13 |
+
dataset_api.download("Resources/wine_images/actual_wine.png")
|
14 |
+
dataset_api.download("Resources/wine_images/df_recent.png")
|
15 |
+
dataset_api.download("Resources/wine_images/confusion_matrix.png")
|
16 |
|
17 |
with gr.Blocks() as demo:
|
18 |
with gr.Row():
|
19 |
with gr.Column():
|
20 |
+
gr.Label("Today's Predicted Wine")
|
21 |
+
input_img = gr.Image("latest_wine.png", elem_id="predicted-img")
|
22 |
with gr.Column():
|
23 |
+
gr.Label("Today's Actual Wine")
|
24 |
+
input_img = gr.Image("actual_wine.png", elem_id="actual-img")
|
25 |
with gr.Row():
|
26 |
with gr.Column():
|
27 |
gr.Label("Recent Prediction History")
|
28 |
+
input_img = gr.Image("df_recent.png", elem_id="recent-predictions")
|
29 |
with gr.Column():
|
30 |
gr.Label("Confusion Maxtrix with Historical Prediction Performance")
|
31 |
#input_img = gr.Image("confusion_matrix.png", elem_id="confusion-matrix")
|