Spaces:
Runtime error
Runtime error
Add app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
import gradio as gr
|
| 3 |
+
|
| 4 |
+
gr.load_openapi(
|
| 5 |
+
openapi_spec="https://unibe365-my.sharepoint.com/:u:/g/personal/loic_borcard_unibe_ch/EZIO71WXta9Onb2N4TxaKPYBzzfEOm8QW9iXQfP1JUXxKA?e=ufJaJo",
|
| 6 |
+
base_url="https://api.ncbi.nlm.nih.gov/datasets/v2",
|
| 7 |
+
paths=None,
|
| 8 |
+
methods=['GET', 'POST', 'PUT', 'DELETE'],
|
| 9 |
+
).launch(mcp_server=True)
|