Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ import torch
|
|
| 10 |
from huggingface_hub import hf_hub_url, cached_download, HfApi
|
| 11 |
|
| 12 |
# Access Hugging Face API key from secrets
|
| 13 |
-
hf_token = st.secrets["
|
| 14 |
if not hf_token:
|
| 15 |
st.error("Hugging Face API key not found. Please make sure it is set in the secrets.")
|
| 16 |
|
|
|
|
| 10 |
from huggingface_hub import hf_hub_url, cached_download, HfApi
|
| 11 |
|
| 12 |
# Access Hugging Face API key from secrets
|
| 13 |
+
hf_token = st.secrets["secrets"]["hf_token"]
|
| 14 |
if not hf_token:
|
| 15 |
st.error("Hugging Face API key not found. Please make sure it is set in the secrets.")
|
| 16 |
|