Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ markdown_with_custom_html(markdown_text, custom_html)
|
|
| 32 |
# Set your Hugging Face API key here
|
| 33 |
# hf_token = "YOUR_HUGGING_FACE_API_KEY" # Replace with your actual token
|
| 34 |
# Get Hugging Face token from secrets.toml - this line should already be in the main code
|
| 35 |
-
hf_token = st.secrets
|
| 36 |
|
| 37 |
HUGGING_FACE_REPO_URL = "https://huggingface.co/spaces/acecalisto3/DevToolKit"
|
| 38 |
PROJECT_ROOT = "projects"
|
|
@@ -360,7 +360,7 @@ st.sidebar.title("Navigation")
|
|
| 360 |
app_mode = st.sidebar.selectbox("Choose the app mode", ["AI Agent Creator", "Tool Box", "Workspace Chat App"])
|
| 361 |
|
| 362 |
# Get Hugging Face token from secrets.toml
|
| 363 |
-
hf_token = st.secrets
|
| 364 |
|
| 365 |
if app_mode == "AI Agent Creator":
|
| 366 |
# AI Agent Creator
|
|
|
|
| 32 |
# Set your Hugging Face API key here
|
| 33 |
# hf_token = "YOUR_HUGGING_FACE_API_KEY" # Replace with your actual token
|
| 34 |
# Get Hugging Face token from secrets.toml - this line should already be in the main code
|
| 35 |
+
hf_token = st.secrets["huggingface"]["hf_token"]
|
| 36 |
|
| 37 |
HUGGING_FACE_REPO_URL = "https://huggingface.co/spaces/acecalisto3/DevToolKit"
|
| 38 |
PROJECT_ROOT = "projects"
|
|
|
|
| 360 |
app_mode = st.sidebar.selectbox("Choose the app mode", ["AI Agent Creator", "Tool Box", "Workspace Chat App"])
|
| 361 |
|
| 362 |
# Get Hugging Face token from secrets.toml
|
| 363 |
+
hf_token = st.secrets["huggingface"]["hf_token"]
|
| 364 |
|
| 365 |
if app_mode == "AI Agent Creator":
|
| 366 |
# AI Agent Creator
|