Spaces:
Runtime error
Runtime error
Commit
·
9e21378
1
Parent(s):
9e655be
temp
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
|
|
2 |
from PIL import Image
|
3 |
import hopsworks
|
4 |
|
|
|
5 |
project = hopsworks.login()
|
6 |
fs = project.get_feature_store()
|
7 |
|
@@ -14,18 +15,20 @@ dataset_api.download("Resources/images/confusion_wine_matrix.png")
|
|
14 |
|
15 |
with gr.Blocks() as demo:
|
16 |
with gr.Row():
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
with gr.Row():
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
|
|
|
|
30 |
|
31 |
demo.launch()
|
|
|
2 |
from PIL import Image
|
3 |
import hopsworks
|
4 |
|
5 |
+
|
6 |
project = hopsworks.login()
|
7 |
fs = project.get_feature_store()
|
8 |
|
|
|
15 |
|
16 |
with gr.Blocks() as demo:
|
17 |
with gr.Row():
|
18 |
+
with gr.Column():
|
19 |
+
gr.Label("Today's Predicted Image")
|
20 |
+
input_img = gr.Image("latest_wine.png", elem_id="predicted-img")
|
21 |
+
with gr.Column():
|
22 |
+
gr.Label("Today's Actual Image")
|
23 |
+
input_img = gr.Image("actual_wine.png", elem_id="actual-img")
|
24 |
with gr.Row():
|
25 |
+
with gr.Column():
|
26 |
+
gr.Label("Recent Prediction History")
|
27 |
+
input_img = gr.Image("df_wine_recent.png", elem_id="recent-predictions")
|
28 |
+
with gr.Column():
|
29 |
+
gr.Label("Confusion Maxtrix with Historical Prediction Performance")
|
30 |
+
input_img = gr.Image(
|
31 |
+
"confusion_wine_matrix.png", elem_id="confusion-matrix"
|
32 |
+
)
|
33 |
|
34 |
demo.launch()
|