Spaces:
Sleeping
Sleeping
OthmaneLKH
commited on
Commit
•
f69116b
1
Parent(s):
442ee69
Update app.py
Browse files
app.py
CHANGED
@@ -481,10 +481,10 @@ def transcribe_audio_app(audio_path):
|
|
481 |
audio = preprocess_audio(audio_path)
|
482 |
|
483 |
# Chargement du modèle
|
484 |
-
model = load_model_and_processor(model_name="openai/whisper-base")
|
485 |
|
486 |
# Transcription
|
487 |
-
transcription = transcribe_audio(model,audio)
|
488 |
|
489 |
return transcription
|
490 |
|
|
|
481 |
audio = preprocess_audio(audio_path)
|
482 |
|
483 |
# Chargement du modèle
|
484 |
+
model,processor = load_model_and_processor(model_name="openai/whisper-base")
|
485 |
|
486 |
# Transcription
|
487 |
+
transcription = transcribe_audio(model=model,processor=processor,audio=audio)
|
488 |
|
489 |
return transcription
|
490 |
|