matteocirca commited on
Commit
16cdf4f
·
1 Parent(s): 700a058

Update app

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