ryomo commited on
Commit
bf92151
·
1 Parent(s): 9966912

fix: update Gradio UI interactions to hide MCP Tools

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -96,13 +96,15 @@ with gr.Blocks(title="Unpredictable Lord") as demo:
96
  ):
97
  yield updated_history
98
 
99
- msg.submit(user, [msg, chatbot], [msg, chatbot], queue=False).then(
100
- bot, chatbot, chatbot
101
- )
102
- submit_btn.click(user, [msg, chatbot], [msg, chatbot], queue=False).then(
103
- bot, chatbot, chatbot
104
- )
105
- clear.click(lambda: None, None, chatbot, queue=False)
 
 
106
 
107
  # MCP Server Tab
108
  with gr.TabItem("MCP Server"):
 
96
  ):
97
  yield updated_history
98
 
99
+ msg.submit(
100
+ user, [msg, chatbot], [msg, chatbot], queue=False, show_api=False
101
+ ).then(bot, chatbot, chatbot, show_api=False)
102
+
103
+ submit_btn.click(
104
+ user, [msg, chatbot], [msg, chatbot], queue=False, show_api=False
105
+ ).then(bot, chatbot, chatbot, show_api=False)
106
+
107
+ clear.click(lambda: None, None, chatbot, queue=False, show_api=False)
108
 
109
  # MCP Server Tab
110
  with gr.TabItem("MCP Server"):