upgrade_no transcription
Browse files
asr.py
CHANGED
@@ -86,11 +86,11 @@ def transcribe_file(model, audio_samples, lang, user_transcription):
|
|
86 |
transcription = processor.decode(ids)
|
87 |
|
88 |
# If user-provided transcription is available, use it to fine-tune the model
|
89 |
-
if user_transcription:
|
90 |
-
model = fine_tune_model(model, processor, user_transcription, audio_samples, lang_code)
|
91 |
-
logger.debug(f"Fine-tuning the model with user-provided transcription: {user_transcription}")
|
92 |
|
93 |
-
return transcription
|
94 |
|
95 |
#def fine_tune_model(model, processor, user_transcription, audio_samples, lang_code):
|
96 |
# Implementation of fine_tune_model remains the same
|
|
|
86 |
transcription = processor.decode(ids)
|
87 |
|
88 |
# If user-provided transcription is available, use it to fine-tune the model
|
89 |
+
#if user_transcription:
|
90 |
+
#model = fine_tune_model(model, processor, user_transcription, audio_samples, lang_code)
|
91 |
+
#logger.debug(f"Fine-tuning the model with user-provided transcription: {user_transcription}")
|
92 |
|
93 |
+
#return transcription
|
94 |
|
95 |
#def fine_tune_model(model, processor, user_transcription, audio_samples, lang_code):
|
96 |
# Implementation of fine_tune_model remains the same
|