Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
import gradio as gr
|
2 |
-
from PIL import Image
|
3 |
import hopsworks
|
4 |
|
5 |
project = hopsworks.login()
|
@@ -7,25 +6,22 @@ fs = project.get_feature_store()
|
|
7 |
|
8 |
dataset_api = project.get_dataset_api()
|
9 |
|
10 |
-
|
11 |
-
dataset_api.download("Resources/images/actual_iris.png")
|
12 |
-
dataset_api.download("Resources/images/df_recent.png")
|
13 |
-
dataset_api.download("Resources/images/confusion_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()
|
|
|
1 |
import gradio as gr
|
|
|
2 |
import hopsworks
|
3 |
|
4 |
project = hopsworks.login()
|
|
|
6 |
|
7 |
dataset_api = project.get_dataset_api()
|
8 |
|
9 |
+
|
|
|
|
|
|
|
10 |
|
11 |
with gr.Blocks() as demo:
|
12 |
with gr.Row():
|
13 |
+
with gr.Column():
|
14 |
+
gr.Label("Today's Predicted Titanic Survival")
|
15 |
+
input_img = gr.Image("latest_titanic.png", elem_id="predicted-img")
|
16 |
+
with gr.Column():
|
17 |
+
gr.Label("Today's Actual Titanic Survival")
|
18 |
+
input_img = gr.Image("actual_titanic.png", elem_id="actual-img")
|
19 |
with gr.Row():
|
20 |
+
with gr.Column():
|
21 |
+
gr.Label("Recent Prediction History")
|
22 |
+
input_img = gr.Image("df_titanic_recent.png", elem_id="recent-predictions")
|
23 |
+
with gr.Column():
|
24 |
+
gr.Label("Confusion Maxtrix with Historical Prediction Performance")
|
25 |
+
input_img = gr.Image("titanic_confusion_matrix.png", elem_id="confusion-matrix")
|
26 |
|
27 |
+
demo.launch()
|