Spaces:
Runtime error
Runtime error
Commit
·
ed93dfc
1
Parent(s):
9f083ab
Whisper X implementation
Browse files- transcription.py +4 -4
transcription.py
CHANGED
@@ -14,7 +14,7 @@ import numpy as np
|
|
14 |
from sklearn.cluster import AgglomerativeClustering
|
15 |
from sklearn.metrics import silhouette_score
|
16 |
|
17 |
-
from pytube import YouTube
|
18 |
#import yt_dlp
|
19 |
import torch
|
20 |
#import pyannote.audio
|
@@ -301,9 +301,9 @@ def speech_to_text(audio_file, selected_source_lang, whisper_model, num_speakers
|
|
301 |
|
302 |
|
303 |
|
304 |
-
#######################################################################
|
305 |
|
306 |
-
def fast_whisper(audio_file, whisper_model="large_v2", language="es"):
|
307 |
|
308 |
|
309 |
-
|
|
|
14 |
from sklearn.cluster import AgglomerativeClustering
|
15 |
from sklearn.metrics import silhouette_score
|
16 |
|
17 |
+
#from pytube import YouTube
|
18 |
#import yt_dlp
|
19 |
import torch
|
20 |
#import pyannote.audio
|
|
|
301 |
|
302 |
|
303 |
|
304 |
+
# #######################################################################
|
305 |
|
306 |
+
# def fast_whisper(audio_file, whisper_model="large_v2", language="es"):
|
307 |
|
308 |
|
309 |
+
# return out
|