FarhadMadadzade commited on
Commit
9e21378
·
1 Parent(s): 9e655be
Files changed (1) hide show
  1. app.py +15 -12
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
- with gr.Column():
18
- gr.Label("Today's Predicted Image")
19
- input_img = gr.Image("latest_wine.png", elem_id="predicted-img")
20
- with gr.Column():
21
- gr.Label("Today's Actual Image")
22
- input_img = gr.Image("actual_wine.png", elem_id="actual-img")
23
  with gr.Row():
24
- with gr.Column():
25
- gr.Label("Recent Prediction History")
26
- input_img = gr.Image("df_wine_recent.png", elem_id="recent-predictions")
27
- with gr.Column():
28
- gr.Label("Confusion Maxtrix with Historical Prediction Performance")
29
- input_img = gr.Image("confusion_wine_matrix.png", elem_id="confusion-matrix")
 
 
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()