Maria Halvarsson commited on
Commit
0b21953
1 Parent(s): 64568b4

Updated monitor

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -9,23 +9,23 @@ fs = project.get_feature_store()
9
 
10
  dataset_api = project.get_dataset_api()
11
 
12
- #dataset_api.download("Resources/images/latest_iris.png") # fix later
13
- #dataset_api.download("Resources/images/actual_iris.png")
14
- #dataset_api.download("Resources/images/df_recent.png")
15
- #dataset_api.download("Resources/images/confusion_matrix.png")
16
 
17
  with gr.Blocks() as demo:
18
  with gr.Row():
19
  with gr.Column():
20
- gr.Label("Today's Predicted Wine Quality")
21
- #input_img = gr.Image("latest_iris.png", elem_id="predicted-img")
22
  with gr.Column():
23
- gr.Label("Today's Actual Wine Quality")
24
- #input_img = gr.Image("actual_iris.png", elem_id="actual-img")
25
  with gr.Row():
26
  with gr.Column():
27
  gr.Label("Recent Prediction History")
28
- #input_img = gr.Image("df_recent.png", elem_id="recent-predictions")
29
  with gr.Column():
30
  gr.Label("Confusion Maxtrix with Historical Prediction Performance")
31
  #input_img = gr.Image("confusion_matrix.png", elem_id="confusion-matrix")
 
9
 
10
  dataset_api = project.get_dataset_api()
11
 
12
+ dataset_api.download("Resources/wine_images/latest_wine.png") # fix later
13
+ dataset_api.download("Resources/wine_images/actual_wine.png")
14
+ dataset_api.download("Resources/wine_images/df_recent.png")
15
+ dataset_api.download("Resources/wine_images/confusion_matrix.png")
16
 
17
  with gr.Blocks() as demo:
18
  with gr.Row():
19
  with gr.Column():
20
+ gr.Label("Today's Predicted Wine")
21
+ input_img = gr.Image("latest_wine.png", elem_id="predicted-img")
22
  with gr.Column():
23
+ gr.Label("Today's Actual Wine")
24
+ input_img = gr.Image("actual_wine.png", elem_id="actual-img")
25
  with gr.Row():
26
  with gr.Column():
27
  gr.Label("Recent Prediction History")
28
+ input_img = gr.Image("df_recent.png", elem_id="recent-predictions")
29
  with gr.Column():
30
  gr.Label("Confusion Maxtrix with Historical Prediction Performance")
31
  #input_img = gr.Image("confusion_matrix.png", elem_id="confusion-matrix")