Spaces:
Sleeping
Sleeping
Update agentic_ui.py
Browse files- agentic_ui.py +2 -2
agentic_ui.py
CHANGED
|
@@ -42,7 +42,7 @@ def chat_ui_interaction(query: str, chat_history: list, api_key: str, model: str
|
|
| 42 |
|
| 43 |
return chat_history
|
| 44 |
|
| 45 |
-
def create_agentic_ui():
|
| 46 |
"""Creates the Agentic UI (Chat UI) components."""
|
| 47 |
with gr.Column() as agentic_ui:
|
| 48 |
gr.Markdown("# AI Research Assistant (Agentic Mode)")
|
|
@@ -56,7 +56,7 @@ def create_agentic_ui():
|
|
| 56 |
|
| 57 |
# Center column for chat messages
|
| 58 |
with gr.Column(scale=3):
|
| 59 |
-
chatbot = gr.Chatbot(label="Chat History")
|
| 60 |
chat_input = gr.Textbox(label="Your Message", placeholder="Type your message here...")
|
| 61 |
chat_button = gr.Button("Send")
|
| 62 |
|
|
|
|
| 42 |
|
| 43 |
return chat_history
|
| 44 |
|
| 45 |
+
def create_agentic_ui(input_api_key, model_dropdown):
|
| 46 |
"""Creates the Agentic UI (Chat UI) components."""
|
| 47 |
with gr.Column() as agentic_ui:
|
| 48 |
gr.Markdown("# AI Research Assistant (Agentic Mode)")
|
|
|
|
| 56 |
|
| 57 |
# Center column for chat messages
|
| 58 |
with gr.Column(scale=3):
|
| 59 |
+
chatbot = gr.Chatbot(label="Chat History", type="messages") # Use type="messages"
|
| 60 |
chat_input = gr.Textbox(label="Your Message", placeholder="Type your message here...")
|
| 61 |
chat_button = gr.Button("Send")
|
| 62 |
|