on1onmangoes commited on
Commit
5577d87
·
verified ·
1 Parent(s): 5b08de5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -729,19 +729,19 @@ def response(audio: tuple[int, np.ndarray], conversation_llm_format: list[dict],
729
  ##-------------- Added by AL based on feedback from Claude -----------
730
 
731
  with gr.Blocks(css=css_code) as demo:
732
- #with gr.Group():
733
- with gr.Row(variant="compact", height="10px"):
734
- chatbot = gr.Chatbot(label="Conversation", type="messages", visible=False, render=False)
735
- with gr.Row(variant="compact", height="30px"):
736
- with gr.Column(scale=1):
737
- with gr.Row(variant="compact", height="30px"):
738
- set_key_button = gr.Button("Ask ZZK", variant="primary")
739
- with gr.Column(scale=1):
740
- with gr.Row(variant="compact", height="30px"):
741
- audio = WebRTC(modality="audio", mode="send-receive",
742
- label="Audio Stream",
743
- rtc_configuration=rtc_configuration)
744
-
745
  client_state = gr.State(None)
746
  conversation_llm_format = gr.State([])
747
  set_key_button.click(set_api_key, inputs=[],
 
729
  ##-------------- Added by AL based on feedback from Claude -----------
730
 
731
  with gr.Blocks(css=css_code) as demo:
732
+ with gr.Group():
733
+ with gr.Row(variant="compact", height="10px"):
734
+ chatbot = gr.Chatbot(label="Conversation", type="messages", visible=False, render=False)
735
+ with gr.Row(variant="compact", height="30px"):
736
+ with gr.Column(scale=1):
737
+ with gr.Row(variant="compact", height="30px"):
738
+ set_key_button = gr.Button("Ask ZZK", variant="primary")
739
+ with gr.Column(scale=1):
740
+ with gr.Row(variant="compact", height="30px"):
741
+ audio = WebRTC(modality="audio", mode="send-receive",
742
+ label="Audio Stream",
743
+ rtc_configuration=rtc_configuration)
744
+
745
  client_state = gr.State(None)
746
  conversation_llm_format = gr.State([])
747
  set_key_button.click(set_api_key, inputs=[],