Update app.py
Browse files
app.py
CHANGED
@@ -274,14 +274,13 @@ def create_interface():
|
|
274 |
with gr.TabItem("π€ Audio Chat"):
|
275 |
with gr.Row():
|
276 |
with gr.Column(scale=1):
|
277 |
-
audio_input = gr.
|
278 |
label="π€ Audio Upload",
|
279 |
-
|
280 |
-
|
281 |
)
|
282 |
-
audio_recorder = gr.
|
283 |
label="ποΈ Record Audio",
|
284 |
-
source="microphone",
|
285 |
type="numpy"
|
286 |
)
|
287 |
audio_text_input = gr.Textbox(
|
@@ -313,14 +312,13 @@ def create_interface():
|
|
313 |
file_types=[".pdf"],
|
314 |
type="filepath"
|
315 |
)
|
316 |
-
combined_audio_input = gr.
|
317 |
label="π€ Audio Upload",
|
318 |
-
|
319 |
-
|
320 |
)
|
321 |
-
combined_audio_recorder = gr.
|
322 |
label="ποΈ Record Audio",
|
323 |
-
source="microphone",
|
324 |
type="numpy"
|
325 |
)
|
326 |
combined_submit_btn = gr.Button("π Send All", variant="primary", size="lg", interactive=False)
|
@@ -436,7 +434,7 @@ def create_interface():
|
|
436 |
)
|
437 |
combined_clear_btn.click(clear_all_inputs,
|
438 |
outputs=[combined_chatbot, combined_text_input,
|
439 |
-
combined_pdf_input, combined_audio_input,
|
440 |
combined_audio_recorder])
|
441 |
|
442 |
gr.Markdown("""
|
|
|
274 |
with gr.TabItem("π€ Audio Chat"):
|
275 |
with gr.Row():
|
276 |
with gr.Column(scale=1):
|
277 |
+
audio_input = gr.Audio(
|
278 |
label="π€ Audio Upload",
|
279 |
+
type="filepath",
|
280 |
+
file_types=[".wav", ".mp3", ".m4a", ".flac", ".ogg"]
|
281 |
)
|
282 |
+
audio_recorder = gr.Microphone(
|
283 |
label="ποΈ Record Audio",
|
|
|
284 |
type="numpy"
|
285 |
)
|
286 |
audio_text_input = gr.Textbox(
|
|
|
312 |
file_types=[".pdf"],
|
313 |
type="filepath"
|
314 |
)
|
315 |
+
combined_audio_input = gr.Audio(
|
316 |
label="π€ Audio Upload",
|
317 |
+
type="filepath",
|
318 |
+
file_types=[".wav", ".mp3", ".m4a", ".flac", ".ogg"]
|
319 |
)
|
320 |
+
combined_audio_recorder = gr.Microphone(
|
321 |
label="ποΈ Record Audio",
|
|
|
322 |
type="numpy"
|
323 |
)
|
324 |
combined_submit_btn = gr.Button("π Send All", variant="primary", size="lg", interactive=False)
|
|
|
434 |
)
|
435 |
combined_clear_btn.click(clear_all_inputs,
|
436 |
outputs=[combined_chatbot, combined_text_input,
|
437 |
+
combined_pdf_input, Updating combined_audio_input,
|
438 |
combined_audio_recorder])
|
439 |
|
440 |
gr.Markdown("""
|