Haesteining commited on
Commit
50dd579
1 Parent(s): 08ad402

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -0
app.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 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
+ dataset_api = project.get_dataset_api()
9
+
10
+
11
+ dataset_api.download("Resources/images/confusion_matrix.png")
12
+
13
+ dataset_api.download("Resources/images/df_recent.png")
14
+
15
+ with gr.Blocks() as demo:
16
+ with gr.Row():
17
+ with gr.Column():
18
+ gr.Label("Confusion Maxtrix with Historical Prediction Performance")
19
+ input_img = gr.Image("confusion_matrix.png", elem_id="confusion-matrix")
20
+
21
+ with gr.Column():
22
+ gr.Label("Recent Prediction History")
23
+ input_img = gr.Image("df_recent.png", elem_id="recent-predictions")
24
+
25
+ demo.launch()