Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ import spaces
|
|
| 21 |
import librosa
|
| 22 |
from txtsplit import txtsplit
|
| 23 |
|
| 24 |
-
device = "cuda" if torch.cuda.is_available() else "mps" if torch.backends.mps.is_available() "cpu"
|
| 25 |
|
| 26 |
pipe = pipeline(
|
| 27 |
"automatic-speech-recognition",
|
|
|
|
| 21 |
import librosa
|
| 22 |
from txtsplit import txtsplit
|
| 23 |
|
| 24 |
+
device = "cuda" if torch.cuda.is_available() else "mps" if torch.backends.mps.is_available() else "cpu"
|
| 25 |
|
| 26 |
pipe = pipeline(
|
| 27 |
"automatic-speech-recognition",
|