Skip to content

Commit 518fa63

Browse files
authored
Merge pull request oracle-devrel#105 from jasperan/main
Fix Gradio 5.x Chatbot format error and pin version
2 parents c5d10a2 + 434216a commit 518fa63

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

apps/agentic_rag/gradio_app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,7 +1377,7 @@ def render_agent_cards():
13771377
# CoT is enabled by default for A2A Chat
13781378
a2a_use_cot_state = gr.State(value=True)
13791379

1380-
a2a_chatbot = gr.Chatbot(height=400, label="A2A Chat")
1380+
a2a_chatbot = gr.Chatbot(height=400, label="A2A Chat", type="tuples")
13811381
with gr.Row():
13821382
a2a_msg = gr.Textbox(label="Your Message", scale=8, placeholder="Ask a question...")
13831383
a2a_clear_button = gr.Button("Clear", scale=1, variant="secondary")
@@ -1734,7 +1734,7 @@ def reasoning_chat_wrapper(message, model, use_rag, collection, strategies, tot_
17341734

17351735
gr.Markdown("### 3. Execution Trace")
17361736
# converted to Chatbot as requested to prevent overflow
1737-
demo_log_output = gr.Chatbot(label="Task Trace", height=600, elem_id="a2a_trace_log")
1737+
demo_log_output = gr.Chatbot(label="Task Trace", height=600, elem_id="a2a_trace_log", type="tuples")
17381738

17391739
# Hidden state to store current log (history)
17401740
demo_log_state = gr.State(value=[])

apps/agentic_rag/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ python-multipart
1111
torch
1212
pyyaml
1313
trafilatura
14-
gradio
14+
gradio>=5.0,<6.0
1515
open-webui
1616
lxml_html_clean
1717
langchain

0 commit comments

Comments
 (0)