Spaces:
Runtime error
Runtime error
Commit ·
5fecd18
1
Parent(s): 0f95cf9
feat: update user instructions and workflow description in Gradio interface for TT-SAM model
Browse files1153 unmodified lines11541155115611571158115711581159116011611162116311631164116611671165116611671168116911701171117211731153 unmodified lines
# ============ Gradio 介面 ============with gr.Blocks(title="TTSAM 震度預測系統", fill_height=True) as demo: gr.Markdown("# 🌏 TTSAM 震度預測系統")with gr.Blocks(title="TT-SAM 震度預測模型", fill_height=True) as demo: gr.Markdown("# TT-SAM 震度預測模型")
# ========== 上層:使用說明與參數設定 ========== with gr.Row(): with gr.Column(scale=1): gr.Markdown("## 使用說明") gr.Markdown( """ - **選擇地震事件**:自動載入測站並執行預測 - **調整時間滑桿**:即時更新波形與震度預測 **流程說明**: 1. 使用 P 波偵測選出距震央最近最多 25 個測站(有 P 波才會有波形,沒有的話補 0) 2. 提取測站資訊(經緯度、高程、Vs30)與 P 波後指定時間長度的三分量波形 3. 波形資料補齊至 30 秒後輸入已訓練好的 TTSAM 模型 4. 模型預測 47 個目標點的 PGA 並轉換為震度,生成分布地圖 5. 將預測結果按縣市歸納,取各縣市最高震度,並按震度大小排序生成文字報告(僅顯示 4 級以上地區) """ ) with gr.Column(scale=1):app.py+8-5