awacke1 commited on
Commit
c6b9b5c
·
verified ·
1 Parent(s): 4e1519e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -190,7 +190,7 @@ def main():
190
 
191
  # Get HF token from secrets or user input
192
  if not st.session_state['hf_token']:
193
- st.session_state['hf_token'] = st.secrets.get("HF_TOKEN", None)
194
 
195
  if not st.session_state['hf_token']:
196
  hf_token = st.text_input("Enter your Hugging Face API token:", type="password")
 
190
 
191
  # Get HF token from secrets or user input
192
  if not st.session_state['hf_token']:
193
+ st.session_state['hf_token'] = HF_KEY
194
 
195
  if not st.session_state['hf_token']:
196
  hf_token = st.text_input("Enter your Hugging Face API token:", type="password")