Spaces:
Build error
Build error
Update app.py (#8)
Browse files- Update app.py (506c6ff9d3801b3ef8de3c7259a10082938f82a1)
app.py
CHANGED
|
@@ -489,7 +489,7 @@ def transcribe_audio_app(audio_path):
|
|
| 489 |
return transcription
|
| 490 |
|
| 491 |
def say_hello_oth():
|
| 492 |
-
return "Hello my name is Othmane Lkhalidi , I am a data science student
|
| 493 |
|
| 494 |
|
| 495 |
demo = gr.Blocks(css=".markdown-body { font-size: 18px; }")
|
|
@@ -593,7 +593,7 @@ with demo:
|
|
| 593 |
########################## Transcription ##########################
|
| 594 |
with gr.Row():
|
| 595 |
transcribe_btn = gr.Button("Transcrire l'audio")
|
| 596 |
-
transcription_output = gr.Textbox(label="Transcription", lines=5)
|
| 597 |
|
| 598 |
transcribe_btn.click(
|
| 599 |
fn=say_hello_oth,
|
|
@@ -668,7 +668,7 @@ with demo:
|
|
| 668 |
gr.Markdown("Or")
|
| 669 |
|
| 670 |
query_box = gr.Textbox(
|
| 671 |
-
value=" Hello
|
| 672 |
)
|
| 673 |
|
| 674 |
default_query_box.change(
|
|
|
|
| 489 |
return transcription
|
| 490 |
|
| 491 |
def say_hello_oth():
|
| 492 |
+
return "Hello my name is Othmane Lkhalidi , I am a 22 years old data science student from Paris."
|
| 493 |
|
| 494 |
|
| 495 |
demo = gr.Blocks(css=".markdown-body { font-size: 18px; }")
|
|
|
|
| 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,
|
|
|
|
| 668 |
gr.Markdown("Or")
|
| 669 |
|
| 670 |
query_box = gr.Textbox(
|
| 671 |
+
value=" Hello my name is Othmane Lkhalidi , I am a 22 years old data science student from Paris.", label="CUSTOMIZED PROMPT:", interactive=True
|
| 672 |
)
|
| 673 |
|
| 674 |
default_query_box.change(
|