Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -281,7 +281,7 @@ def handle_text_image(question, session_id):
|
|
| 281 |
return handle_image_question(question, session_id)
|
| 282 |
|
| 283 |
# ------------------ Gradio UI ------------------
|
| 284 |
-
with gr.Blocks(
|
| 285 |
gr.HTML("""
|
| 286 |
<style>
|
| 287 |
/* Change height + width of the audio recorder box */
|
|
@@ -300,9 +300,9 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 300 |
#pdf_summary_file = gr.File(label="Download Summary", visible=False)
|
| 301 |
|
| 302 |
with gr.Tab("🎤 Voice Chat"):
|
| 303 |
-
chat_voice = gr.Chatbot(
|
| 304 |
with gr.Row():
|
| 305 |
-
mic = gr.Audio(type="filepath",label="🎤 Record Voice (hold & speak)",
|
| 306 |
audio_output = gr.Audio(label="Assistant Voice Output", type="filepath", interactive=False)
|
| 307 |
tts_lang = gr.Dropdown(choices=["en", "ur"], value="en", label="TTS Language")
|
| 308 |
|
|
|
|
| 281 |
return handle_image_question(question, session_id)
|
| 282 |
|
| 283 |
# ------------------ Gradio UI ------------------
|
| 284 |
+
with gr.Blocks() as demo:
|
| 285 |
gr.HTML("""
|
| 286 |
<style>
|
| 287 |
/* Change height + width of the audio recorder box */
|
|
|
|
| 300 |
#pdf_summary_file = gr.File(label="Download Summary", visible=False)
|
| 301 |
|
| 302 |
with gr.Tab("🎤 Voice Chat"):
|
| 303 |
+
chat_voice = gr.Chatbot( height=320)
|
| 304 |
with gr.Row():
|
| 305 |
+
mic = gr.Audio(type="filepath",label="🎤 Record Voice (hold & speak)", elem_id="mic_box")
|
| 306 |
audio_output = gr.Audio(label="Assistant Voice Output", type="filepath", interactive=False)
|
| 307 |
tts_lang = gr.Dropdown(choices=["en", "ur"], value="en", label="TTS Language")
|
| 308 |
|