Spaces:
Running on Zero
Running on Zero
Upload folder using huggingface_hub
Browse files
src/__pycache__/gradio_app.cpython-311.pyc
CHANGED
|
Binary files a/src/__pycache__/gradio_app.cpython-311.pyc and b/src/__pycache__/gradio_app.cpython-311.pyc differ
|
|
|
src/gradio_app.py
CHANGED
|
@@ -380,7 +380,7 @@ with gr.Blocks(title="River Network Explorer") as demo:
|
|
| 380 |
with explore_group:
|
| 381 |
status_md = gr.Markdown("Loading datasets...")
|
| 382 |
plot_output = gr.Plot(label="River Map")
|
| 383 |
-
slider = gr.Slider(minimum=0, maximum=100, value=
|
| 384 |
|
| 385 |
with gr.Row():
|
| 386 |
metric_elev = gr.Number(label="Elevation (m)")
|
|
@@ -422,7 +422,7 @@ with gr.Blocks(title="River Network Explorer") as demo:
|
|
| 422 |
validation_group: gr.update(visible=False),
|
| 423 |
status_md: "❌ Could not find station_elevations.csv under data root.",
|
| 424 |
plot_output: default_fig,
|
| 425 |
-
slider:
|
| 426 |
metric_elev: 0.0,
|
| 427 |
metric_dist: "",
|
| 428 |
metric_gw: "No data",
|
|
@@ -476,7 +476,7 @@ with gr.Blocks(title="River Network Explorer") as demo:
|
|
| 476 |
validation_group: gr.update(visible=False),
|
| 477 |
status_md: status_text,
|
| 478 |
plot_output: fig,
|
| 479 |
-
slider:
|
| 480 |
}
|
| 481 |
|
| 482 |
def compute_position(basin_id, percent):
|
|
|
|
| 380 |
with explore_group:
|
| 381 |
status_md = gr.Markdown("Loading datasets...")
|
| 382 |
plot_output = gr.Plot(label="River Map")
|
| 383 |
+
slider = gr.Slider(minimum=0, maximum=100, value=43, step=1, label="Position along river (%)")
|
| 384 |
|
| 385 |
with gr.Row():
|
| 386 |
metric_elev = gr.Number(label="Elevation (m)")
|
|
|
|
| 422 |
validation_group: gr.update(visible=False),
|
| 423 |
status_md: "❌ Could not find station_elevations.csv under data root.",
|
| 424 |
plot_output: default_fig,
|
| 425 |
+
slider: 43,
|
| 426 |
metric_elev: 0.0,
|
| 427 |
metric_dist: "",
|
| 428 |
metric_gw: "No data",
|
|
|
|
| 476 |
validation_group: gr.update(visible=False),
|
| 477 |
status_md: status_text,
|
| 478 |
plot_output: fig,
|
| 479 |
+
slider: 43
|
| 480 |
}
|
| 481 |
|
| 482 |
def compute_position(basin_id, percent):
|