Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ MODEL_NAME = "openai/whisper-medium"
|
|
36 |
FILE_LIMIT_MB = 1000
|
37 |
YT_LENGTH_LIMIT_S = 3600
|
38 |
|
39 |
-
device = 0 if torch.cuda.is_available() else "cpu"
|
40 |
|
41 |
pipe = pipeline(
|
42 |
task="automatic-speech-recognition",
|
|
|
36 |
FILE_LIMIT_MB = 1000
|
37 |
YT_LENGTH_LIMIT_S = 3600
|
38 |
|
39 |
+
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
40 |
|
41 |
pipe = pipeline(
|
42 |
task="automatic-speech-recognition",
|