Spaces:
Sleeping
Sleeping
Daniel Varga commited on
Commit ·
2492a6c
1
Parent(s): f42c22d
testing version
Browse files
app.py
CHANGED
|
@@ -22,6 +22,13 @@ from bess import BatteryParameters, BatteryModel
|
|
| 22 |
|
| 23 |
OLD_DATASET = False
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
met_2021_data, cons_2021_data = read_datasets(old_dataset=OLD_DATASET)
|
| 26 |
|
| 27 |
|
|
@@ -185,6 +192,8 @@ def ui_refresh(
|
|
| 185 |
|
| 186 |
|
| 187 |
with gr.Blocks() as ui:
|
|
|
|
|
|
|
| 188 |
with gr.Row():
|
| 189 |
# LEFT: Input controls
|
| 190 |
with gr.Column(scale=1): # narrower column
|
|
@@ -246,5 +255,6 @@ with gr.Blocks() as ui:
|
|
| 246 |
# [solar_cell_num_slider, bess_slider, fixed_consumption_slider, base_price, peak_price],
|
| 247 |
outputs=[html_out, plot1, plot2, plot3],
|
| 248 |
)
|
|
|
|
| 249 |
|
| 250 |
ui.launch()
|
|
|
|
| 22 |
|
| 23 |
OLD_DATASET = False
|
| 24 |
|
| 25 |
+
|
| 26 |
+
import pkg_resources
|
| 27 |
+
version = pkg_resources.get_distribution("gradio").version
|
| 28 |
+
has_datetime = hasattr(gr, "DateTime")
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
|
| 32 |
met_2021_data, cons_2021_data = read_datasets(old_dataset=OLD_DATASET)
|
| 33 |
|
| 34 |
|
|
|
|
| 192 |
|
| 193 |
|
| 194 |
with gr.Blocks() as ui:
|
| 195 |
+
gr.Markdown(f"**Running Gradio v{version}** – DateTime available: `{has_datetime}`")
|
| 196 |
+
'''
|
| 197 |
with gr.Row():
|
| 198 |
# LEFT: Input controls
|
| 199 |
with gr.Column(scale=1): # narrower column
|
|
|
|
| 255 |
# [solar_cell_num_slider, bess_slider, fixed_consumption_slider, base_price, peak_price],
|
| 256 |
outputs=[html_out, plot1, plot2, plot3],
|
| 257 |
)
|
| 258 |
+
'''
|
| 259 |
|
| 260 |
ui.launch()
|
readme.sh
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
|
| 2 |
bash Miniconda3-latest-Linux-x86_64.sh
|
| 3 |
conda install mamba -n base -c conda-forge
|
|
|
|
| 1 |
+
# MET data:
|
| 2 |
+
# https://odp.met.hu/climate/observations_hungary/10_minutes/historical/
|
| 3 |
+
# MET data docs:
|
| 4 |
+
# https://odp.met.hu/climate/observations_hungary/10_minutes/historical/Leiras_automata_10perces-HABP_10M_hist-hu.pdf
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
|
| 8 |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
|
| 9 |
bash Miniconda3-latest-Linux-x86_64.sh
|
| 10 |
conda install mamba -n base -c conda-forge
|