asad9641 commited on
Commit
feae3d3
·
verified ·
1 Parent(s): 097a389

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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(theme=gr.themes.Soft()) as demo:
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(type="messages", height=300)
304
  with gr.Row():
305
- mic = gr.Audio(type="filepath",label="🎤 Record Voice (hold & speak)", show_download_button=True, 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
 
 
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