Download app.py from Shamik88/entrust: direct link, hf CLI and curl.
- Browser
- Download file 305 Bytes
-
https://huggingface.co/spaces/Shamik88/entrust/resolve/main/app.py
- Command line
-
hf download hf://spaces/Shamik88/entrust/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Shamik88/entrust/resolve/main/app.py
305 Bytes
| import os | |
| import gradio as gr | |
| gr.load_openapi( | |
| openapi_spec="http://entrust.justfordemo.in/swagger/v1/swagger.json", | |
| base_url="http://entrust.justfordemo.in/", | |
| paths=None, | |
| methods=['GET', 'POST', 'PUT', 'DELETE'], | |
| auth_token=os.getenv("OPENAPI_AUTH_TOKEN") | |
| ).launch(mcp_server=True) | |