ccibeekeoc42 commited on
Commit
85d7229
·
verified ·
1 Parent(s): 9b99f7b

Changed LLM output text to text box rather than maekdown. Also made it before the speech

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -238,9 +238,10 @@ mic_translate = gr.Interface(
238
  fn=speech_to_speech_translation,
239
  inputs=gr.Audio(sources="microphone", type="filepath"),
240
  outputs=[
241
- gr.Textbox(label="Transcribed Text", interactive=False),
242
- gr.Audio(label="Generated Speech", type="numpy"),
243
- gr.Markdown(label="LLM Enhanced Response") # New Markdown output
 
244
  ]
245
  )
246
 
@@ -248,9 +249,10 @@ file_translate = gr.Interface(
248
  fn=speech_to_speech_translation,
249
  inputs=gr.Audio(sources="upload", type="filepath"),
250
  outputs=[
251
- gr.Textbox(label="Transcribed Text", interactive=False),
252
- gr.Audio(label="Generated Speech", type="numpy"),
253
- gr.Markdown(label="LLM Enhanced Response") # New Markdown output
 
254
  ]
255
  )
256
 
 
238
  fn=speech_to_speech_translation,
239
  inputs=gr.Audio(sources="microphone", type="filepath"),
240
  outputs=[
241
+ gr.Textbox(label="Transcribed Text", interactive=True),
242
+ gr.Textbox(label="LLM Enhanced Response", interactive=False), # New Markdown output
243
+ gr.Audio(label="Generated Speech", type="numpy")
244
+ # gr.Markdown(label="LLM Enhanced Response") # New Markdown output
245
  ]
246
  )
247
 
 
249
  fn=speech_to_speech_translation,
250
  inputs=gr.Audio(sources="upload", type="filepath"),
251
  outputs=[
252
+ gr.Textbox(label="Transcribed Text", interactive=True),
253
+ gr.Textbox(label="LLM Enhanced Response", interactive=False), # New Markdown output
254
+ gr.Audio(label="Generated Speech", type="numpy")
255
+ # gr.Markdown(label="LLM Enhanced Response") # New Markdown output
256
  ]
257
  )
258