Spaces:
Sleeping
Sleeping
HarshitJoshi
commited on
Commit
•
294ff0d
1
Parent(s):
f263ba4
Update app.py
Browse files
app.py
CHANGED
@@ -30,8 +30,7 @@ with gr.Blocks() as demo:
|
|
30 |
gr.Markdown("# Hindi Speech Transcription")
|
31 |
|
32 |
with gr.Tab("Transcribe"):
|
33 |
-
audio_input = gr.Audio(
|
34 |
-
upload_button = gr.UploadButton("Upload Audio", file_types=["audio"])
|
35 |
transcribe_button = gr.Button("Transcribe")
|
36 |
output_text = gr.Textbox(label="Transcription")
|
37 |
|
@@ -40,11 +39,6 @@ with gr.Blocks() as demo:
|
|
40 |
inputs=audio_input,
|
41 |
outputs=output_text
|
42 |
)
|
43 |
-
upload_button.upload(
|
44 |
-
fn=lambda file: file.name,
|
45 |
-
inputs=upload_button,
|
46 |
-
outputs=audio_input
|
47 |
-
)
|
48 |
|
49 |
with gr.Tab("Examples"):
|
50 |
example_dropdown = gr.Dropdown(choices=example_files, label="Select an example")
|
|
|
30 |
gr.Markdown("# Hindi Speech Transcription")
|
31 |
|
32 |
with gr.Tab("Transcribe"):
|
33 |
+
audio_input = gr.Audio(type="filepath", label="Audio Input")
|
|
|
34 |
transcribe_button = gr.Button("Transcribe")
|
35 |
output_text = gr.Textbox(label="Transcription")
|
36 |
|
|
|
39 |
inputs=audio_input,
|
40 |
outputs=output_text
|
41 |
)
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
with gr.Tab("Examples"):
|
44 |
example_dropdown = gr.Dropdown(choices=example_files, label="Select an example")
|