Spaces:
Paused
Paused
Update app.py
Browse files
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 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
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=[],
|