Spaces:
Sleeping
Sleeping
Add app.py
Browse files
app.py
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
import os
|
3 |
+
import gradio as gr
|
4 |
+
|
5 |
+
gr.load_openapi(
|
6 |
+
openapi_spec="https://petstore3.swagger.io/api/v3/openapi.json",
|
7 |
+
base_url="https://petstore3.swagger.io/api/v3/",
|
8 |
+
paths=None,
|
9 |
+
methods=['GET', 'POST', 'PUT', 'DELETE'],
|
10 |
+
auth_token=os.getenv("OPENAPI_AUTH_TOKEN")
|
11 |
+
).launch(mcp_server=True)
|