debug
Browse files
App/Transcription/Utils/audio_transcription.py
CHANGED
@@ -9,6 +9,7 @@ current_time = time.localtime()
|
|
9 |
|
10 |
|
11 |
def transcribe_file(state, file_path, model_size="tiny"):
|
|
|
12 |
result = []
|
13 |
metadata = TranscriptionMetadata()
|
14 |
start_time = datetime.now()
|
|
|
9 |
|
10 |
|
11 |
def transcribe_file(state, file_path, model_size="tiny"):
|
12 |
+
print(model_size)
|
13 |
result = []
|
14 |
metadata = TranscriptionMetadata()
|
15 |
start_time = datetime.now()
|
App/Worker.py
CHANGED
@@ -38,6 +38,7 @@ def downloadfile(self, url, ydl_opts, model_size="base"):
|
|
38 |
# updated
|
39 |
self.update_state(state="Downloading complete", meta={})
|
40 |
audio_file = ydl_opts["outtmpl"]
|
|
|
41 |
# print(audio_file["default"])
|
42 |
data = transcribe_file(
|
43 |
state=self, file_path=audio_file["default"], model_size=model_size
|
|
|
38 |
# updated
|
39 |
self.update_state(state="Downloading complete", meta={})
|
40 |
audio_file = ydl_opts["outtmpl"]
|
41 |
+
print(model_size)
|
42 |
# print(audio_file["default"])
|
43 |
data = transcribe_file(
|
44 |
state=self, file_path=audio_file["default"], model_size=model_size
|