Spaces:
Sleeping
Sleeping
Changed LLM output text to text box rather than maekdown. Also made it before the speech
Browse files
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=
|
242 |
-
gr.
|
243 |
-
gr.
|
|
|
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=
|
252 |
-
gr.
|
253 |
-
gr.
|
|
|
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 |
|