Spaces:
Runtime error
Runtime error
Commit
·
1d564c1
1
Parent(s):
5613bdc
asdf
Browse files
app.py
CHANGED
@@ -2,19 +2,20 @@ import gradio as gr
|
|
2 |
from PIL import Image
|
3 |
import hopsworks
|
4 |
|
5 |
-
project = hopsworks.login()
|
6 |
-
fs = project.get_feature_store()
|
7 |
|
8 |
-
|
|
|
|
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
dataset_api.download("Resources/images/
|
14 |
-
dataset_api.download("Resources/images/
|
15 |
-
dataset_api.download("Resources/images/
|
|
|
|
|
16 |
|
17 |
-
with gr.Blocks() as demo:
|
18 |
with gr.Column():
|
19 |
gr.Label("Today's passenger")
|
20 |
input_img = gr.Image("latest_survivor_pred.png",
|
|
|
2 |
from PIL import Image
|
3 |
import hopsworks
|
4 |
|
|
|
|
|
5 |
|
6 |
+
with gr.Blocks() as demo:
|
7 |
+
project = hopsworks.login()
|
8 |
+
fs = project.get_feature_store()
|
9 |
|
10 |
+
dataset_api = project.get_dataset_api()
|
11 |
+
|
12 |
+
print('Downloading...')
|
13 |
+
dataset_api.download("Resources/images/latest_survivor_pred.png")
|
14 |
+
dataset_api.download("Resources/images/latest_survivor_label_pred.png")
|
15 |
+
dataset_api.download("Resources/images/latest_survivor_label_actual.png")
|
16 |
+
dataset_api.download("Resources/images/df_recent_titanic.png")
|
17 |
+
dataset_api.download("Resources/images/confusion_matrix.png")
|
18 |
|
|
|
19 |
with gr.Column():
|
20 |
gr.Label("Today's passenger")
|
21 |
input_img = gr.Image("latest_survivor_pred.png",
|