simonalphamap commited on
Commit
049aa3e
·
verified ·
1 Parent(s): 94e7522

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://api-development-bb49.up.railway.app/spec",
7
+ base_url="https://api-development-bb49.up.railway.app/",
8
+ paths=["^(?!.*(demographics|rank|user)).*$"],
9
+ methods=['GET', 'POST', 'PUT', 'DELETE'],
10
+ auth_token=os.getenv("OPENAPI_AUTH_TOKEN")
11
+ ).launch(mcp_server=True)