Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ asr_model = pipeline(
|
|
| 15 |
"automatic-speech-recognition",
|
| 16 |
model="openai/whisper-medium",
|
| 17 |
chunk_length_s=30,
|
| 18 |
-
device=torch.device("cuda"),
|
| 19 |
)
|
| 20 |
|
| 21 |
def transcribe_file(f: str) -> str:
|
|
|
|
| 15 |
"automatic-speech-recognition",
|
| 16 |
model="openai/whisper-medium",
|
| 17 |
chunk_length_s=30,
|
| 18 |
+
device=torch.device("cuda:0"),
|
| 19 |
)
|
| 20 |
|
| 21 |
def transcribe_file(f: str) -> str:
|