AbyelT commited on
Commit
42e2156
1 Parent(s): 33fb862

electrical price monitoring v1

Browse files
Files changed (2) hide show
  1. app.py +21 -0
  2. requirements.txt +1 -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_se3_elec_price_recent.png", overwrite=True)
8
+ dataset_api.download("Resources/images/df_se3_error_metrics.png", overwrite=True)
9
+ dataset_api.download("Resources/images/df_se3_elec_price_prediction.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_se3_elec_price_recent.png", elem_id="latest-prediction")
16
+ input_img = gr.Image("df_se3_error_metrics.png", elem_id="latest-error-metrics")
17
+ with gr.Column():
18
+ gr.Label("Prediction History")
19
+ input_img = gr.Image("df_se3_elec_price_prediction.png", elem_id="historical-predictions")
20
+
21
+ demo.launch()
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ hopsworks