Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,17 +145,17 @@ def create_pdf_wrapper(data_json, out_path=None, include_chart=True):


# ---------- Assistant tab ----------
assistant_chat = gr.ChatInterface(
fn=answer,
title="NeurArk Data Assistant",
examples=[
"Show me total sales for 2024 and create a PDF report"
],
api_name=False, # Hide from API and MCP
# Specify message type explicitly to avoid warning
chatbot=gr.Chatbot(type="messages"),
type="messages"
)
with gr.Blocks() as assistant_chat:
gr.ChatInterface(
fn=answer,
title="NeurArk Data Assistant",
examples=[
"Show me total sales for 2024 and create a PDF report"
],
api_name=False, # hide from external MCP schema
chatbot=gr.Chatbot(type="messages"),
type="messages",
)


# ---------- Tabs UI -----------------
Expand Down