Spaces:
Sleeping
Sleeping
Download app.py from 0xpranav/testmcpspace: direct link, hf CLI and curl.
- Browser
- Download file 306 Bytes
-
https://huggingface.co/spaces/0xpranav/testmcpspace/resolve/main/app.py
- Command line
-
hf download hf://spaces/0xpranav/testmcpspace/app.py
-
curl -L -o app.py https://huggingface.co/spaces/0xpranav/testmcpspace/resolve/main/app.py
306 Bytes
| import os | |
| import gradio as gr | |
| gr.load_openapi( | |
| openapi_spec="https://petstore3.swagger.io/api/v3/openapi.json", | |
| base_url="https://petstore3.swagger.io/api/v3/", | |
| paths=None, | |
| methods=['GET', 'POST', 'PUT', 'DELETE'], | |
| auth_token=os.getenv("OPENAPI_AUTH_TOKEN") | |
| ).launch(mcp_server=True) | |