Spaces:
Sleeping
Sleeping
Commit
·
200c9b4
1
Parent(s):
0d04cf4
feat: update default earthquake event selection to the third event in the dropdown
Browse files
app.py
CHANGED
|
@@ -1132,7 +1132,7 @@ with gr.Blocks(title="TTSAM 震度預測系統", fill_height=True) as demo:
|
|
| 1132 |
with gr.Column(scale=1):
|
| 1133 |
event_dropdown = gr.Dropdown(
|
| 1134 |
choices=list(earthquake_metadata.keys()),
|
| 1135 |
-
value=list(earthquake_metadata.keys())[
|
| 1136 |
label="選擇地震事件",
|
| 1137 |
)
|
| 1138 |
duration_slider = gr.Slider(
|
|
@@ -1160,7 +1160,7 @@ with gr.Blocks(title="TTSAM 震度預測系統", fill_height=True) as demo:
|
|
| 1160 |
label="實際觀測震度",
|
| 1161 |
type="filepath",
|
| 1162 |
value=load_observed_intensity_image(
|
| 1163 |
-
list(earthquake_metadata.keys())[
|
| 1164 |
)
|
| 1165 |
|
| 1166 |
# ========== 隱藏的 State 變數(用於快取中間結果)==========
|
|
|
|
| 1132 |
with gr.Column(scale=1):
|
| 1133 |
event_dropdown = gr.Dropdown(
|
| 1134 |
choices=list(earthquake_metadata.keys()),
|
| 1135 |
+
value=list(earthquake_metadata.keys())[2],
|
| 1136 |
label="選擇地震事件",
|
| 1137 |
)
|
| 1138 |
duration_slider = gr.Slider(
|
|
|
|
| 1160 |
label="實際觀測震度",
|
| 1161 |
type="filepath",
|
| 1162 |
value=load_observed_intensity_image(
|
| 1163 |
+
list(earthquake_metadata.keys())[2]),
|
| 1164 |
)
|
| 1165 |
|
| 1166 |
# ========== 隱藏的 State 變數(用於快取中間結果)==========
|