Update app.py
Browse files
app.py
CHANGED
|
@@ -469,6 +469,13 @@ code_interface = gr.Interface(
|
|
| 469 |
description=(
|
| 470 |
"<div style=\"text-align:center\">Execute Python code and see the output. This app is also an MCP server for LLMs.</div>"
|
| 471 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 472 |
allow_flagging="never",
|
| 473 |
theme="Nymbo/Nymbo_Theme",
|
| 474 |
)
|
|
@@ -481,7 +488,7 @@ demo = gr.TabbedInterface(
|
|
| 481 |
"DuckDuckGo Search",
|
| 482 |
"Python Code Executor",
|
| 483 |
],
|
| 484 |
-
title="Tools MCP
|
| 485 |
theme="Nymbo/Nymbo_Theme",
|
| 486 |
css="""
|
| 487 |
.gradio-container h1 {
|
|
|
|
| 469 |
description=(
|
| 470 |
"<div style=\"text-align:center\">Execute Python code and see the output. This app is also an MCP server for LLMs.</div>"
|
| 471 |
),
|
| 472 |
+
api_description=(
|
| 473 |
+
"Execute arbitrary Python code and return captured stdout or an error message.\n\n"
|
| 474 |
+
"Parameters:\n"
|
| 475 |
+
"- code (string): The Python source code to run.\n\n"
|
| 476 |
+
"Returns:\n"
|
| 477 |
+
"- string: Combined stdout produced by the code, or the exception text if execution failed."
|
| 478 |
+
),
|
| 479 |
allow_flagging="never",
|
| 480 |
theme="Nymbo/Nymbo_Theme",
|
| 481 |
)
|
|
|
|
| 488 |
"DuckDuckGo Search",
|
| 489 |
"Python Code Executor",
|
| 490 |
],
|
| 491 |
+
title="Tools MCP",
|
| 492 |
theme="Nymbo/Nymbo_Theme",
|
| 493 |
css="""
|
| 494 |
.gradio-container h1 {
|