Spaces:
Sleeping
Sleeping
Update logic.py
Browse files
logic.py
CHANGED
@@ -7,7 +7,7 @@ import whisper
|
|
7 |
import torch
|
8 |
if not backend.EspeakBackend.is_available():
|
9 |
import os
|
10 |
-
os.system('
|
11 |
device = 'cuda:0' if torch.cuda.is_available() else 'cpu'
|
12 |
|
13 |
model = whisper.load_model("base.en", device=device)
|
|
|
7 |
import torch
|
8 |
if not backend.EspeakBackend.is_available():
|
9 |
import os
|
10 |
+
os.system('apt-get install espeak-ng')
|
11 |
device = 'cuda:0' if torch.cuda.is_available() else 'cpu'
|
12 |
|
13 |
model = whisper.load_model("base.en", device=device)
|