Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -586,24 +586,20 @@ with demo:
|
|
| 586 |
|
| 587 |
audio_btn.click(fn=action, inputs=audio_btn, outputs=audio_btn) \
|
| 588 |
.then(fn=check_btn, inputs=audio_btn) \
|
| 589 |
-
.success(fn=
|
| 590 |
|
| 591 |
clear.click(lambda: None, None, msg, queue=False)
|
| 592 |
|
| 593 |
########################## Transcription ##########################
|
| 594 |
-
# Row 1: Title
|
| 595 |
-
gr.Markdown("<h1 style='text-align: center;'>Transcription d'Audio</h1>")
|
| 596 |
-
|
| 597 |
-
# Row 2: Audio Upload and Transcription Box
|
| 598 |
with gr.Row():
|
| 599 |
-
|
| 600 |
-
|
| 601 |
-
|
| 602 |
-
|
| 603 |
-
|
| 604 |
-
|
| 605 |
-
|
| 606 |
-
|
| 607 |
|
| 608 |
########################## Key Gen Part ##########################
|
| 609 |
|
|
|
|
| 586 |
|
| 587 |
audio_btn.click(fn=action, inputs=audio_btn, outputs=audio_btn) \
|
| 588 |
.then(fn=check_btn, inputs=audio_btn) \
|
| 589 |
+
.success(fn=transcribe_audio_app, outputs=msg)
|
| 590 |
|
| 591 |
clear.click(lambda: None, None, msg, queue=False)
|
| 592 |
|
| 593 |
########################## Transcription ##########################
|
|
|
|
|
|
|
|
|
|
|
|
|
| 594 |
with gr.Row():
|
| 595 |
+
transcribe_btn = gr.Button("Transcrire l'audio")
|
| 596 |
+
transcription_output = gr.Textbox(value = "Hello my name is Othmane Lkhalidi , I am a 22 years old data science student from Paris.",label="Transcription", lines=5)
|
| 597 |
+
|
| 598 |
+
transcribe_btn.click(
|
| 599 |
+
fn=say_hello_oth,
|
| 600 |
+
inputs=[audio_output],
|
| 601 |
+
outputs=[msg]
|
| 602 |
+
)
|
| 603 |
|
| 604 |
########################## Key Gen Part ##########################
|
| 605 |
|