Spaces:
Running
Running
Commit
·
5fecd18
1
Parent(s):
0f95cf9
feat: update user instructions and workflow description in Gradio interface for TT-SAM model
Browse files
app.py
CHANGED
|
@@ -1154,17 +1154,20 @@ def step3_predict_intensity(cached_waveforms, cached_station_info, cached_statio
|
|
| 1154 |
|
| 1155 |
|
| 1156 |
# ============ Gradio 介面 ============
|
| 1157 |
-
with gr.Blocks(title="
|
| 1158 |
-
gr.Markdown("#
|
| 1159 |
|
| 1160 |
# ========== 上層:使用說明與參數設定 ==========
|
| 1161 |
with gr.Row():
|
| 1162 |
with gr.Column(scale=1):
|
| 1163 |
-
gr.Markdown("## 使用說明")
|
| 1164 |
gr.Markdown(
|
| 1165 |
"""
|
| 1166 |
-
|
| 1167 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1168 |
"""
|
| 1169 |
)
|
| 1170 |
with gr.Column(scale=1):
|
|
|
|
| 1154 |
|
| 1155 |
|
| 1156 |
# ============ Gradio 介面 ============
|
| 1157 |
+
with gr.Blocks(title="TT-SAM 震度預測模型", fill_height=True) as demo:
|
| 1158 |
+
gr.Markdown("# TT-SAM 震度預測模型")
|
| 1159 |
|
| 1160 |
# ========== 上層:使用說明與參數設定 ==========
|
| 1161 |
with gr.Row():
|
| 1162 |
with gr.Column(scale=1):
|
|
|
|
| 1163 |
gr.Markdown(
|
| 1164 |
"""
|
| 1165 |
+
**流程說明**:
|
| 1166 |
+
1. 使用 P 波偵測選出距震央最近最多 25 個測站(有 P 波才會有波形,沒有的話補 0)
|
| 1167 |
+
2. 提取測站資訊(經緯度、高程、Vs30)與 P 波後指定時間長度的三分量波形
|
| 1168 |
+
3. 波形資料補齊至 30 秒後輸入已訓練好的 TTSAM 模型
|
| 1169 |
+
4. 模型預測 47 個目標點的 PGA 並轉換為震度,生成分布地圖
|
| 1170 |
+
5. 將預測結果按縣市歸納,取各縣市最高震度,並按震度大小排序生成文字報告(僅顯示 4 級以上地區)
|
| 1171 |
"""
|
| 1172 |
)
|
| 1173 |
with gr.Column(scale=1):
|