Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ from langchain_community.llms import HuggingFaceHub
|
|
| 11 |
# Fix Streamlit config in Docker
|
| 12 |
os.environ["STREAMLIT_HOME"] = "/tmp/.streamlit"
|
| 13 |
|
| 14 |
-
HF_TOKEN = os.environ.get("
|
| 15 |
if HF_TOKEN is None:
|
| 16 |
st.error("⚠️ Hugging Face API token not set. Add it in Settings → Secrets.")
|
| 17 |
st.stop()
|
|
|
|
| 11 |
# Fix Streamlit config in Docker
|
| 12 |
os.environ["STREAMLIT_HOME"] = "/tmp/.streamlit"
|
| 13 |
|
| 14 |
+
HF_TOKEN = os.environ.get("HUGGINGFACEHUB_API_TOKEN")
|
| 15 |
if HF_TOKEN is None:
|
| 16 |
st.error("⚠️ Hugging Face API token not set. Add it in Settings → Secrets.")
|
| 17 |
st.stop()
|