05_10_stable version
Browse files- __pycache__/asr.cpython-312.pyc +0 -0
- app.py +1 -1
- asr.py +2 -2
__pycache__/asr.cpython-312.pyc
ADDED
|
Binary file (5.89 kB). View file
|
|
|
app.py
CHANGED
|
@@ -57,7 +57,7 @@ language_options = [f"{k} ({v})" for k, v in ASR_LANGUAGES.items()]
|
|
| 57 |
mms_transcribe = gr.Interface(
|
| 58 |
fn=transcribe_multiple_files,
|
| 59 |
inputs=[
|
| 60 |
-
gr.
|
| 61 |
gr.Dropdown(
|
| 62 |
choices=language_options,
|
| 63 |
label="Language",
|
|
|
|
| 57 |
mms_transcribe = gr.Interface(
|
| 58 |
fn=transcribe_multiple_files,
|
| 59 |
inputs=[
|
| 60 |
+
gr.File(type="audio", multiple=True), # Allow multiple audio files
|
| 61 |
gr.Dropdown(
|
| 62 |
choices=language_options,
|
| 63 |
label="Language",
|
asr.py
CHANGED
|
@@ -92,7 +92,7 @@ def transcribe_file(model, audio_samples, lang, 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
|
| 97 |
# ...
|
| 98 |
|
|
@@ -120,4 +120,4 @@ mms_transcribe = gr.Interface(
|
|
| 120 |
# ...
|
| 121 |
|
| 122 |
if __name__ == "__main__":
|
| 123 |
-
|
|
|
|
| 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
|
| 97 |
# ...
|
| 98 |
|
|
|
|
| 120 |
# ...
|
| 121 |
|
| 122 |
if __name__ == "__main__":
|
| 123 |
+
mms_transcribe.launch()
|