50 50
Browse files
App/Transcription/Utils/audio_transcription.py
CHANGED
@@ -44,7 +44,7 @@ def transcribe_file(state, file_path, model_size="tiny"):
|
|
44 |
}
|
45 |
result.append(temp)
|
46 |
|
47 |
-
if current_time.tm_sec %
|
48 |
metadata.logs = "Transcribing.."
|
49 |
metadata.percentage = f"{((word.end / total_duration)*100)}"
|
50 |
state.update_state(state="PROGRESS", meta=metadata.dict())
|
|
|
44 |
}
|
45 |
result.append(temp)
|
46 |
|
47 |
+
if current_time.tm_sec % 2 == 0:
|
48 |
metadata.logs = "Transcribing.."
|
49 |
metadata.percentage = f"{((word.end / total_duration)*100)}"
|
50 |
state.update_state(state="PROGRESS", meta=metadata.dict())
|