Maria Halvarsson commited on
Commit
64568b4
·
1 Parent(s): a31d967

application file

Browse files
Files changed (2) hide show
  1. app.py +33 -0
  2. requirements.txt +1 -0
app.py ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from PIL import Image
3
+ import hopsworks
4
+ import os
5
+
6
+
7
+ project = hopsworks.login()
8
+ 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")
32
+
33
+ demo.launch()
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ hopsworks