Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ with gr.Blocks(theme = gr.themes.Soft()) as demo:
|
|
70 |
with torch.no_grad():
|
71 |
output = model_tts(**tokenized_input).waveform
|
72 |
|
73 |
-
gradio_tuple =
|
74 |
|
75 |
return gradio_tuple
|
76 |
|
@@ -85,7 +85,7 @@ with gr.Blocks(theme = gr.themes.Soft()) as demo:
|
|
85 |
""")
|
86 |
with gr.Column(scale = 4):
|
87 |
with gr.Tab("Rolou kumaa ginarit"):
|
88 |
-
input_audio = gr.Audio(sources =
|
89 |
output_text = gr.components.Textbox(label = "Dalinsuat")
|
90 |
button1 = gr.Button("Dalinsuato' | Transcribe")
|
91 |
button1.click(transcribe, inputs = input_audio, outputs = output_text)
|
|
|
70 |
with torch.no_grad():
|
71 |
output = model_tts(**tokenized_input).waveform
|
72 |
|
73 |
+
gradio_tuple = (16000, output[0])
|
74 |
|
75 |
return gradio_tuple
|
76 |
|
|
|
85 |
""")
|
86 |
with gr.Column(scale = 4):
|
87 |
with gr.Tab("Rolou kumaa ginarit"):
|
88 |
+
input_audio = gr.Audio(sources = ['microphone'], type = 'filepath', label = "Gakamai rolou nu", format = 'wav')
|
89 |
output_text = gr.components.Textbox(label = "Dalinsuat")
|
90 |
button1 = gr.Button("Dalinsuato' | Transcribe")
|
91 |
button1.click(transcribe, inputs = input_audio, outputs = output_text)
|