Spaces:
Build error
Build error
Commit
·
6089c46
1
Parent(s):
5cc18a5
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ import json
|
|
| 13 |
import soundfile as sf
|
| 14 |
|
| 15 |
|
| 16 |
-
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 17 |
|
| 18 |
# Intialise STT (Whisper)
|
| 19 |
pipe = pipeline(
|
|
|
|
| 13 |
import soundfile as sf
|
| 14 |
|
| 15 |
|
| 16 |
+
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
| 17 |
|
| 18 |
# Intialise STT (Whisper)
|
| 19 |
pipe = pipeline(
|