Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,11 +12,19 @@ def transcribe(audio):
|
|
| 12 |
return transcriber({"sampling_rate": sr, "raw": y})["text"]
|
| 13 |
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
demo = gr.Interface(
|
| 16 |
-
transcribe,
|
| 17 |
-
gr.Audio(sources=["microphone"]),
|
| 18 |
-
|
| 19 |
-
|
|
|
|
| 20 |
)
|
| 21 |
|
| 22 |
demo.launch(show_error=True, share=True)
|
|
|
|
| 12 |
return transcriber({"sampling_rate": sr, "raw": y})["text"]
|
| 13 |
|
| 14 |
|
| 15 |
+
# demo = gr.Interface(
|
| 16 |
+
# transcribe,
|
| 17 |
+
# gr.Audio(sources=["microphone"]),
|
| 18 |
+
# "text", title="S2T: Transcription automatique de l'arabe en text by PS-WADE",
|
| 19 |
+
# description="Utilisez le microphone pour parler en arabe, puis appuyez sur le bouton stop et Submit"
|
| 20 |
+
# )
|
| 21 |
+
|
| 22 |
demo = gr.Interface(
|
| 23 |
+
fn=transcribe,
|
| 24 |
+
inputs=gr.Audio(sources=["microphone"], label="Enregistrement Audio"),
|
| 25 |
+
outputs=gr.Textbox(label="Texte en Arabe"),
|
| 26 |
+
title="S2T: Transcription automatique de l'arabe en texte par PS-WADE",
|
| 27 |
+
description="Utilisez le microphone pour parler en arabe, puis appuyez sur le bouton stop et Submit pour voir la transcription."
|
| 28 |
)
|
| 29 |
|
| 30 |
demo.launch(show_error=True, share=True)
|