selogertchaddev / app.py
bairing's picture
Add app.py
186d36f verified
Raw History Blame Contribute Delete
333 Bytes
import os
import gradio as gr
gr.load_openapi(
openapi_spec="https://api.dev.seloger-tchad.com/swagger-json",
base_url="https://api.dev.seloger-tchad.com",
paths=["^/(properties/search|locations)$"],
methods=['GET', 'POST', 'PUT', 'DELETE'],
auth_token=os.getenv("OPENAPI_AUTH_TOKEN")
).launch(mcp_server=True)