Spaces:
Sleeping
Sleeping
owwe
commited on
Commit
·
d589322
1
Parent(s):
490a229
last commit
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import hopsworks
|
|
4 |
project = hopsworks.login(project="DD2223_lab1")
|
5 |
fs = project.get_feature_store()
|
6 |
|
7 |
-
dataset_api = project.get_dataset_api()
|
8 |
|
9 |
dataset_api.download("Resources/images/latest_wine.txt")
|
10 |
dataset_api.download("Resources/images/actual_wine.txt")
|
@@ -19,18 +19,18 @@ def read_text_file(file_path):
|
|
19 |
|
20 |
with gr.Blocks() as demo:
|
21 |
with gr.Row():
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
with gr.Row():
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
|
36 |
demo.launch()
|
|
|
4 |
project = hopsworks.login(project="DD2223_lab1")
|
5 |
fs = project.get_feature_store()
|
6 |
|
7 |
+
dataset_api = project.get_dataset_api()
|
8 |
|
9 |
dataset_api.download("Resources/images/latest_wine.txt")
|
10 |
dataset_api.download("Resources/images/actual_wine.txt")
|
|
|
19 |
|
20 |
with gr.Blocks() as demo:
|
21 |
with gr.Row():
|
22 |
+
with gr.Column():
|
23 |
+
gr.Label("Today's Predicted Wine Quality")
|
24 |
+
input = gr.Text(read_text_file("latest_wine.txt"), elem_id="recent-text")
|
25 |
+
with gr.Column():
|
26 |
+
gr.Label("Today's Actual Wine Quality")
|
27 |
+
input = gr.Text(read_text_file("actual_wine.txt"), elem_id="recent-text")
|
28 |
with gr.Row():
|
29 |
+
with gr.Column():
|
30 |
+
gr.Label("Recent Prediction History")
|
31 |
+
input = gr.Image("df_recent.png", elem_id="recent-predictions")
|
32 |
+
with gr.Column():
|
33 |
+
gr.Label("Confusion Maxtrix with Historical Prediction Performance")
|
34 |
+
input_img = gr.Image("confusion_matrix.png", elem_id="confusion-matrix")
|
35 |
|
36 |
demo.launch()
|