Spaces:
Running
Running
both become new asr model
Browse files- analyzer/ASR_en_us.py +1 -1
analyzer/ASR_en_us.py
CHANGED
|
@@ -9,7 +9,7 @@ from datetime import datetime, timezone
|
|
| 9 |
|
| 10 |
# --- 1. 全域設定 (已修改) ---
|
| 11 |
# 移除了全域的 processor 和 model 變數,只保留常數。
|
| 12 |
-
MODEL_NAME = "
|
| 13 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
| 14 |
print(f"INFO: ASR_en_us.py is configured to use device: {DEVICE}")
|
| 15 |
|
|
|
|
| 9 |
|
| 10 |
# --- 1. 全域設定 (已修改) ---
|
| 11 |
# 移除了全域的 processor 和 model 變數,只保留常數。
|
| 12 |
+
MODEL_NAME = "KoelLabs/xlsr-english-01"
|
| 13 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
| 14 |
print(f"INFO: ASR_en_us.py is configured to use device: {DEVICE}")
|
| 15 |
|