Spaces:
Runtime error
Runtime error
anyantudre
commited on
Commit
•
4561589
1
Parent(s):
aff819e
Update goai_stt.py
Browse files- goai_stt.py +3 -1
goai_stt.py
CHANGED
@@ -3,8 +3,10 @@ import torch
|
|
3 |
import time
|
4 |
from transformers import set_seed, Wav2Vec2ForCTC, AutoProcessor
|
5 |
|
|
|
6 |
|
7 |
-
|
|
|
8 |
"""
|
9 |
Transcrire un fichier audio donné.
|
10 |
|
|
|
3 |
import time
|
4 |
from transformers import set_seed, Wav2Vec2ForCTC, AutoProcessor
|
5 |
|
6 |
+
device = 0 if torch.cuda.is_available() else "cpu"
|
7 |
|
8 |
+
|
9 |
+
def goai_stt(fichier):
|
10 |
"""
|
11 |
Transcrire un fichier audio donné.
|
12 |
|