linshoufan commited on
Commit
f77c621
·
verified ·
1 Parent(s): d4f2093

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ MODEL_NAME = "yuweiiizz/whisper-small-taiwanese"
7
  lang = "chinese"
8
 
9
  # 根據是否有可用的 CUDA 設備來選擇設備
10
- device = 0 if torch.cuda.is_available() else "mps"
11
 
12
  # 初始化 pipeline,指定任務、模型和設備
13
  pipe = pipeline(
 
7
  lang = "chinese"
8
 
9
  # 根據是否有可用的 CUDA 設備來選擇設備
10
+ device = 0 if torch.cuda.is_available() else "cpu"
11
 
12
  # 初始化 pipeline,指定任務、模型和設備
13
  pipe = pipeline(