Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -168,21 +168,21 @@ def infer_audio_to_text_gr(audio_path):
|
|
168 |
text_to_audio_interface = gr.Interface(
|
169 |
fn=infer_text_to_audio_gr,
|
170 |
inputs=gr.Textbox(label="Input Text"),
|
171 |
-
outputs=gr.Audio(label="
|
172 |
title="T2S",
|
173 |
-
description="
|
174 |
allow_flagging='never',
|
175 |
)
|
176 |
|
177 |
audio_to_text_interface = gr.Interface(
|
178 |
fn=infer_audio_to_text_gr,
|
179 |
inputs=gr.Audio(type="filepath", label="Input Audio"),
|
180 |
-
outputs=gr.Textbox(label="
|
181 |
title="S2T",
|
182 |
-
description="
|
183 |
allow_flagging='never'
|
184 |
)
|
185 |
|
186 |
# Launch Gradio App
|
187 |
-
demo = gr.TabbedInterface([text_to_audio_interface, audio_to_text_interface], ["
|
188 |
demo.launch(share=True)
|
|
|
168 |
text_to_audio_interface = gr.Interface(
|
169 |
fn=infer_text_to_audio_gr,
|
170 |
inputs=gr.Textbox(label="Input Text"),
|
171 |
+
outputs=gr.Audio(label="Audio Answer"),
|
172 |
title="T2S",
|
173 |
+
description="Model in text to audio mode",
|
174 |
allow_flagging='never',
|
175 |
)
|
176 |
|
177 |
audio_to_text_interface = gr.Interface(
|
178 |
fn=infer_audio_to_text_gr,
|
179 |
inputs=gr.Audio(type="filepath", label="Input Audio"),
|
180 |
+
outputs=gr.Textbox(label="Text Answer"),
|
181 |
title="S2T",
|
182 |
+
description="Model in audio to text mode",
|
183 |
allow_flagging='never'
|
184 |
)
|
185 |
|
186 |
# Launch Gradio App
|
187 |
+
demo = gr.TabbedInterface([text_to_audio_interface, audio_to_text_interface], ["Text - Audio", "Audio - Text"])
|
188 |
demo.launch(share=True)
|