AkshayUmesh commited on
Commit
bd2b023
·
verified ·
1 Parent(s): 2c57db1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("HuggingfacehubAPIToken")
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()