Spaces:
Runtime error
Runtime error
Update app.py
Browse filesHi, your token was exposed so I am making a PR to hide it. Please save it as a secret instead, which will expose it as an env variable in your Space. But you should also reset your token since it will still be present in the git history
app.py
CHANGED
@@ -1,10 +1,11 @@
|
|
1 |
|
2 |
import gradio as gr
|
|
|
3 |
|
4 |
gr.load_openapi(
|
5 |
openapi_spec="https://yellow-georgetta-49.tiiny.site/openapi.json",
|
6 |
base_url="https://api.tradearies.dev",
|
7 |
paths=None,
|
8 |
methods=['GET', 'POST', 'PUT', 'DELETE'],
|
9 |
-
auth_token=
|
10 |
).launch(mcp_server=True)
|
|
|
1 |
|
2 |
import gradio as gr
|
3 |
+
import os
|
4 |
|
5 |
gr.load_openapi(
|
6 |
openapi_spec="https://yellow-georgetta-49.tiiny.site/openapi.json",
|
7 |
base_url="https://api.tradearies.dev",
|
8 |
paths=None,
|
9 |
methods=['GET', 'POST', 'PUT', 'DELETE'],
|
10 |
+
auth_token=os.getenv("TOKEN"),
|
11 |
).launch(mcp_server=True)
|