Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ def markdown_with_custom_html(md, html):
|
|
| 24 |
else:
|
| 25 |
return md_content
|
| 26 |
|
| 27 |
-
|
| 28 |
markdown_text = "Compare model responses with me!"
|
| 29 |
markdown_with_custom_html(markdown_text, custom_html)
|
| 30 |
|
|
@@ -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["huggingface"]["hf_token"]
|
| 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["huggingface"]["hf_token"]
|
| 364 |
|
| 365 |
if app_mode == "AI Agent Creator":
|
| 366 |
# AI Agent Creator
|
|
|
|
| 24 |
else:
|
| 25 |
return md_content
|
| 26 |
|
| 27 |
+
|
| 28 |
markdown_text = "Compare model responses with me!"
|
| 29 |
markdown_with_custom_html(markdown_text, custom_html)
|
| 30 |
|
|
|
|
| 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.key["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.key["huggingface"]["hf_token"]
|
| 364 |
|
| 365 |
if app_mode == "AI Agent Creator":
|
| 366 |
# AI Agent Creator
|