Spaces:
Runtime error
Runtime error
Commit ·
82f78ef
1
Parent(s): 16196d0
refactor: reorganize layout for earthquake alert report and waveform visualization
Browse files963 unmodified lines9649659669679689699709719729739749759769779789799809819829839849859869879883 unmodified lines9929939949959969979989991000963 unmodified lines# ========== 上層:使用說明與參數設定 ==========with gr.Row():# 左上:使用步驟與狀態顯示with gr.Column(scale=1):gr.Markdown("## 使用說明")gr.Markdown("""- **選擇地震事件**:自動載入測站並執行預測- **調整時間滑桿**:即時更新波形與震度預測系統會自動選擇距離震央最近的 25 個測站,並快取資料避免重複讀檔。""")gr.Markdown("## 警報資訊")alert_textbox = gr.Textbox(label="地震預警報告(≥ 4 級地區)",lines=7,max_lines=7,interactive=False,show_copy_button=False,)with gr.Column(scale=1):event_dropdown = gr.Dropdown(choices=list(earthquake_metadata.keys()),3 unmodified linesduration_slider = gr.Slider(2, 15, value=15, step=1, label="P 波後時間 (秒)")waveform_plot = gr.Plot(label="地震波形(選定的 25 個測站)",)# ========== 下層:合併地圖 vs 實際觀測 ==========with gr.Row():963 unmodified lines9649659669679689699709719729739749759769779789793 unmodified lines9839849859869879889899909919929939949959969979989991000963 unmodified lines# ========== 上層:使用說明與參數設定 ==========with gr.Row():with gr.Column(scale=1):gr.Markdown("## 使用說明")gr.Markdown("""- **選擇地震事件**:自動載入測站並執行預測- **調整時間滑桿**:即時更新波形與震度預測系統會自動選擇距離震央最近的 25 個測站,並快取資料避免重複讀檔。""")with gr.Column(scale=1):event_dropdown = gr.Dropdown(choices=list(earthquake_metadata.keys()),3 unmodified linesduration_slider = gr.Slider(2, 15, value=15, step=1, label="P 波後時間 (秒)")with gr.Row(scale=1):alert_textbox = gr.Textbox(label="地震預警報告(≥ 4 級地區)",lines=7,max_lines=7,interactive=False,show_copy_button=False,)waveform_plot = gr.Plot(label="地震波形(選定的 25 個測站)",)# ========== 下層:合併地圖 vs 實際觀測 ==========with gr.Row():
app.py+13-13