Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ import soundfile as sf
|
|
16 |
|
17 |
|
18 |
model_name = "voidful/wav2vec2-xlsr-multilingual-56"
|
19 |
-
device = "cuda"
|
20 |
processor_name = "voidful/wav2vec2-xlsr-multilingual-56"
|
21 |
|
22 |
import pickle
|
|
|
16 |
|
17 |
|
18 |
model_name = "voidful/wav2vec2-xlsr-multilingual-56"
|
19 |
+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
20 |
processor_name = "voidful/wav2vec2-xlsr-multilingual-56"
|
21 |
|
22 |
import pickle
|