Spaces:
Sleeping
Sleeping
Daniel Varga commited on
Commit ·
3ff4f65
1
Parent(s): 86e9c0b
...okay, but app was neutered
Browse files
app.py
CHANGED
|
@@ -23,12 +23,6 @@ from bess import BatteryParameters, BatteryModel
|
|
| 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,8 +186,6 @@ def ui_refresh(
|
|
| 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,6 +247,5 @@ with gr.Blocks() as ui:
|
|
| 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()
|
|
|
|
| 23 |
OLD_DATASET = False
|
| 24 |
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
met_2021_data, cons_2021_data = read_datasets(old_dataset=OLD_DATASET)
|
| 27 |
|
| 28 |
|
|
|
|
| 186 |
|
| 187 |
|
| 188 |
with gr.Blocks() as ui:
|
|
|
|
|
|
|
| 189 |
with gr.Row():
|
| 190 |
# LEFT: Input controls
|
| 191 |
with gr.Column(scale=1): # narrower column
|
|
|
|
| 247 |
# [solar_cell_num_slider, bess_slider, fixed_consumption_slider, base_price, peak_price],
|
| 248 |
outputs=[html_out, plot1, plot2, plot3],
|
| 249 |
)
|
|
|
|
| 250 |
|
| 251 |
ui.launch()
|