Spaces:
Running
Running
Commit
·
67d3502
1
Parent(s):
040ebdb
Update app.py
Browse files
app.py
CHANGED
@@ -82,15 +82,15 @@ with gr.Blocks(theme = gr.themes.Soft()) as demo:
|
|
82 |
""")
|
83 |
with gr.Column(scale = 4):
|
84 |
with gr.Tab("Rolou kumaa ginarit"):
|
85 |
-
|
86 |
-
|
87 |
button1 = gr.Button("Dalinsuato' | Transcribe")
|
88 |
-
button1.click(transcribe, inputs =
|
89 |
|
90 |
with gr.Tab("Ginarit kumaa rolou"):
|
91 |
-
|
92 |
button2 = gr.Button("Poulayo'")
|
93 |
-
|
94 |
-
button2.click(fn2, inputs =
|
95 |
|
96 |
demo.launch(debug = True)
|
|
|
82 |
""")
|
83 |
with gr.Column(scale = 4):
|
84 |
with gr.Tab("Rolou kumaa ginarit"):
|
85 |
+
input_audio = gr.Audio(source = "microphone", label = "Gakamai rolou nu")
|
86 |
+
output_text = gr.components.Textbox(label = "Dalinsuat")
|
87 |
button1 = gr.Button("Dalinsuato' | Transcribe")
|
88 |
+
button1.click(transcribe, inputs = input_audio, outputs = output_text)
|
89 |
|
90 |
with gr.Tab("Ginarit kumaa rolou"):
|
91 |
+
input_text = gr.components.Textbox(label = "Ginarit", placeholder = "Potutakai suat nu hiti")
|
92 |
button2 = gr.Button("Poulayo'")
|
93 |
+
output_audio = gr.components.Audio(label = "Rolou pinoulai")
|
94 |
+
button2.click(fn2, inputs = input_text, outputs = output_audio)
|
95 |
|
96 |
demo.launch(debug = True)
|