Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| from src.tools.handlers import calculate_user_statistics,update_user_status | |
| with gr.Blocks() as demo: | |
| gr.Markdown( | |
| """ | |
| This is a demo of a MCP-only tool. | |
| It provides functionality to calculate user statistics and update user status. | |
| This tool is MCP-only, so it does not have a UI. | |
| """ | |
| ) | |
| gr.api( | |
| calculate_user_statistics, | |
| ) | |
| gr.api( | |
| update_user_status, | |
| ) | |
| _, url, _ = demo.launch(mcp_server=True) |