Akseluhr commited on
Commit
49ab8b2
·
1 Parent(s): 581e128

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -0
app.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import hopsworks
3
+
4
+ project = hopsworks.login()
5
+
6
+ dataset_api = project.get_dataset_api()
7
+ dataset_api.download("Resources/images/df_btc_recent.png", overwrite=True)
8
+ dataset_api.download("Resources/images/df_btc_prediction.png", overwrite=True)
9
+ dataset_api.download("Resources/images/df_btc_mae.png", overwrite=True)
10
+
11
+ with gr.Blocks() as demo:
12
+ with gr.Row():
13
+ with gr.Column():
14
+ gr.Label("Today's prediction")
15
+ input_img = gr.Image("df_btc_prediction.png", elem_id="latest-prediction")
16
+ with gr.Column():
17
+ gr.Label("Recent Prediction History")
18
+ input_img = gr.Image("df_btc_recent.png", elem_id="recent-predictions")
19
+ input_img = gr.Image("df_btc_mae.png", elem_id="recent-predictions")
20
+
21
+ demo.launch()