odaly commited on
Commit
9366ad3
·
verified ·
1 Parent(s): ca9ae0b

update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -9,6 +9,8 @@ hf_token = os.getenv("HUGGING_FACE_API_TOKEN")
9
  if not hf_token:
10
  st.error("Hugging Face API token not found. Please set the HUGGING_FACE_API_TOKEN environment variable.")
11
  st.stop()
 
 
12
 
13
  # Initialize the model and tokenizer using Hugging Face pipeline
14
  model_id = "meta-llama/Meta-Llama-3.1-70B"
 
9
  if not hf_token:
10
  st.error("Hugging Face API token not found. Please set the HUGGING_FACE_API_TOKEN environment variable.")
11
  st.stop()
12
+ else:
13
+ st.write(f"Hugging Face API token found: {hf_token[:4]}...") # Debug statement, only showing the first 4 characters for security
14
 
15
  # Initialize the model and tokenizer using Hugging Face pipeline
16
  model_id = "meta-llama/Meta-Llama-3.1-70B"