Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -201,13 +201,14 @@ with gr.Blocks() as demo:
|
|
201 |
audio_input = gr.Audio(type="filepath", label="Upload audio")
|
202 |
doc_input = gr.File(type="filepath", label="Upload a document")
|
203 |
voice_only_mode = gr.Checkbox(label="Enable Voice Only Mode")
|
204 |
-
|
|
|
205 |
|
206 |
submit = gr.Button("Submit")
|
207 |
submit.click(
|
208 |
fn=main_interface,
|
209 |
inputs=[user_prompt, image_input, video_input, audio_input, doc_input, voice_only_mode],
|
210 |
-
outputs=
|
211 |
)
|
212 |
|
213 |
demo.launch(inline=False)
|
|
|
201 |
audio_input = gr.Audio(type="filepath", label="Upload audio")
|
202 |
doc_input = gr.File(type="filepath", label="Upload a document")
|
203 |
voice_only_mode = gr.Checkbox(label="Enable Voice Only Mode")
|
204 |
+
output_label = gr.Label(label="Output")
|
205 |
+
audio_output = gr.Audio(label="Audio Output", visible=False)
|
206 |
|
207 |
submit = gr.Button("Submit")
|
208 |
submit.click(
|
209 |
fn=main_interface,
|
210 |
inputs=[user_prompt, image_input, video_input, audio_input, doc_input, voice_only_mode],
|
211 |
+
outputs=[output_label, audio_output]
|
212 |
)
|
213 |
|
214 |
demo.launch(inline=False)
|