Spaces:
Runtime error
Runtime error
Commit ·
4244096
1
Parent(s): c4acae9
add default values for API configurations
Browse files
app.py
CHANGED
|
@@ -182,23 +182,27 @@ def create_gradio_app():
|
|
| 182 |
label="📁 GitHub Repo",
|
| 183 |
placeholder="e.g., username/repository",
|
| 184 |
info="The target repository for GitHub operations.",
|
|
|
|
| 185 |
)
|
| 186 |
github_token = gr.Textbox(
|
| 187 |
label="🔐 GitHub Token",
|
| 188 |
placeholder="ghp_xxxxxxxxxxxx",
|
| 189 |
type="password",
|
| 190 |
info="A fine-grained personal access token.",
|
|
|
|
| 191 |
)
|
| 192 |
trello_api = gr.Textbox(
|
| 193 |
label="🗂️ Trello API Key",
|
| 194 |
placeholder="Your Trello API key",
|
| 195 |
info="Your API key from trello.com/power-ups/admin.",
|
|
|
|
| 196 |
)
|
| 197 |
trello_token = gr.Textbox(
|
| 198 |
label="🔐 Trello Token",
|
| 199 |
placeholder="Your Trello token",
|
| 200 |
type="password",
|
| 201 |
info="A token generated from your Trello account.",
|
|
|
|
| 202 |
)
|
| 203 |
|
| 204 |
|
|
|
|
| 182 |
label="📁 GitHub Repo",
|
| 183 |
placeholder="e.g., username/repository",
|
| 184 |
info="The target repository for GitHub operations.",
|
| 185 |
+
value=os.getenv("GITHUB_REPO_NAME")
|
| 186 |
)
|
| 187 |
github_token = gr.Textbox(
|
| 188 |
label="🔐 GitHub Token",
|
| 189 |
placeholder="ghp_xxxxxxxxxxxx",
|
| 190 |
type="password",
|
| 191 |
info="A fine-grained personal access token.",
|
| 192 |
+
value=os.getenv("GITHUB_API_KEY")
|
| 193 |
)
|
| 194 |
trello_api = gr.Textbox(
|
| 195 |
label="🗂️ Trello API Key",
|
| 196 |
placeholder="Your Trello API key",
|
| 197 |
info="Your API key from trello.com/power-ups/admin.",
|
| 198 |
+
value=os.getenv("TRELLO_API_KEY")
|
| 199 |
)
|
| 200 |
trello_token = gr.Textbox(
|
| 201 |
label="🔐 Trello Token",
|
| 202 |
placeholder="Your Trello token",
|
| 203 |
type="password",
|
| 204 |
info="A token generated from your Trello account.",
|
| 205 |
+
value=os.getenv("TRELLO_TOKEN")
|
| 206 |
)
|
| 207 |
|
| 208 |
|