Vasi001 commited on
Commit
ffc0b00
1 Parent(s): 176dd0d

Update app.py

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