Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,7 +31,11 @@ mic_transcrire = gr.Interface(
|
|
| 31 |
cache_examples=True,
|
| 32 |
outputs=gr.Textbox(label="Transcription",
|
| 33 |
lines=3),
|
| 34 |
-
title = 'Transcrire par microphone - Whisper'
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
# Créer un interface ASR whisper par audio
|
| 37 |
fich_transcrire = gr.Interface(
|
|
@@ -41,10 +45,9 @@ fich_transcrire = gr.Interface(
|
|
| 41 |
outputs=gr.Textbox(label="Transcription",
|
| 42 |
lines=3),
|
| 43 |
title = 'Transcrire un fichier audio - Whisper',
|
| 44 |
-
description
|
| 45 |
-
|
| 46 |
-
Parlez directement dans votre microphone et obtenez instantanément la transcription du contenu audio."""
|
| 47 |
|
|
|
|
| 48 |
)
|
| 49 |
|
| 50 |
# Créer un interface ASR canary avec un microphone
|
|
@@ -56,11 +59,10 @@ mic_transcrire1 = gr.Interface(
|
|
| 56 |
cache_examples=True,
|
| 57 |
outputs=gr.Textbox(label="Transcription",
|
| 58 |
lines=3),
|
| 59 |
-
title = 'Transcrire par microphone - Canary',
|
| 60 |
-
description
|
| 61 |
-
|
| 62 |
-
Téléversez un fichier audio (format wav, mp3, etc.) pour obtenir sa transcription textuelle rapide et précise."""
|
| 63 |
|
|
|
|
| 64 |
)
|
| 65 |
|
| 66 |
# Créer un interface ASR canary par audio
|
|
@@ -71,12 +73,10 @@ fich_transcrire1 = gr.Interface(
|
|
| 71 |
gr.Dropdown(choices = ['fr', 'en'], label ='Target language')],
|
| 72 |
outputs=gr.Textbox(label="Transcription",
|
| 73 |
lines=3),
|
| 74 |
-
title= 'Transcrire un fichier audio - Canary',
|
| 75 |
-
description
|
| 76 |
-
|
| 77 |
-
Téléversez un fichier, sélectionnez les langues source et cible, et recevez la transcription ou traduction correspondante."""
|
| 78 |
|
| 79 |
-
|
| 80 |
)
|
| 81 |
|
| 82 |
# Faire un tabbed des interfaces sur demo
|
|
|
|
| 31 |
cache_examples=True,
|
| 32 |
outputs=gr.Textbox(label="Transcription",
|
| 33 |
lines=3),
|
| 34 |
+
title = 'Transcrire par microphone - Whisper',
|
| 35 |
+
description="""Transcription audio en temps réel via microphone avec le modèle Whisper d’OpenAI.
|
| 36 |
+
|
| 37 |
+
Parlez directement dans votre microphone pour obtenir une transcription instantanée du contenu sonore."""
|
| 38 |
+
)
|
| 39 |
|
| 40 |
# Créer un interface ASR whisper par audio
|
| 41 |
fich_transcrire = gr.Interface(
|
|
|
|
| 45 |
outputs=gr.Textbox(label="Transcription",
|
| 46 |
lines=3),
|
| 47 |
title = 'Transcrire un fichier audio - Whisper',
|
| 48 |
+
description="""Transcription automatique d’un fichier audio téléversé avec le modèle Whisper d’OpenAI.
|
|
|
|
|
|
|
| 49 |
|
| 50 |
+
Téléversez un fichier audio (wav, mp3, etc.) pour obtenir une transcription textuelle précise."""
|
| 51 |
)
|
| 52 |
|
| 53 |
# Créer un interface ASR canary avec un microphone
|
|
|
|
| 59 |
cache_examples=True,
|
| 60 |
outputs=gr.Textbox(label="Transcription",
|
| 61 |
lines=3),
|
| 62 |
+
title = 'Transcrire par microphone - Canary',
|
| 63 |
+
description="""Transcription et traduction multilingue en temps réel via microphone avec le modèle Canary (NVIDIA).
|
|
|
|
|
|
|
| 64 |
|
| 65 |
+
Enregistrez via microphone, sélectionnez la langue source et cible, et obtenez la transcription ou traduction instantanément."""
|
| 66 |
)
|
| 67 |
|
| 68 |
# Créer un interface ASR canary par audio
|
|
|
|
| 73 |
gr.Dropdown(choices = ['fr', 'en'], label ='Target language')],
|
| 74 |
outputs=gr.Textbox(label="Transcription",
|
| 75 |
lines=3),
|
| 76 |
+
title= 'Transcrire un fichier audio - Canary',
|
| 77 |
+
description="""Transcription et traduction multilingue à partir d’un fichier audio téléversé avec le modèle Canary (NVIDIA).
|
|
|
|
|
|
|
| 78 |
|
| 79 |
+
Téléversez un fichier audio, choisissez les langues source et cible, puis recevez la transcription ou traduction correspondante."""
|
| 80 |
)
|
| 81 |
|
| 82 |
# Faire un tabbed des interfaces sur demo
|