Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ import gradio as gr
|
|
56 |
gr.load_openapi(
|
57 |
openapi_spec=\"{}\",
|
58 |
base_url=\"{}\",
|
59 |
-
paths
|
60 |
methods={},
|
61 |
).launch(mcp_server=True)
|
62 |
"""
|
@@ -111,7 +111,7 @@ def launch_mcp_server(openapi_spec_url, api_base_url, paths, methods, space_name
|
|
111 |
gradio_app_code.format(
|
112 |
openapi_spec_url,
|
113 |
api_base_url,
|
114 |
-
paths or
|
115 |
methods
|
116 |
)
|
117 |
)
|
|
|
56 |
gr.load_openapi(
|
57 |
openapi_spec=\"{}\",
|
58 |
base_url=\"{}\",
|
59 |
+
paths=\"{}\",
|
60 |
methods={},
|
61 |
).launch(mcp_server=True)
|
62 |
"""
|
|
|
111 |
gradio_app_code.format(
|
112 |
openapi_spec_url,
|
113 |
api_base_url,
|
114 |
+
paths or None,
|
115 |
methods
|
116 |
)
|
117 |
)
|