apsys commited on
Commit
0982cdf
·
verified ·
1 Parent(s): 028eaf2

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -5
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)