abidlabs HF Staff commited on
Commit
9b3af04
·
verified ·
1 Parent(s): 7473dd4

Add app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
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)