Cylanoid commited on
Commit
8e1a378
·
verified ·
1 Parent(s): 9f75433

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -19,6 +19,9 @@ llama = os.getenv("llama:levi put token here") # Token expected as env variable
19
  if not llama:
20
  raise ValueError("llama token not found in environment variables. Please set it in Hugging Face Space secrets under 'Settings' > 'Secrets' as 'llama'.")
21
 
 
 
 
22
  # Authenticate with Hugging Face
23
  huggingface_hub.login(token=llama)
24
 
 
19
  if not llama:
20
  raise ValueError("llama token not found in environment variables. Please set it in Hugging Face Space secrets under 'Settings' > 'Secrets' as 'llama'.")
21
 
22
+ # Debug: Print the token to verify it's being read (remove this in production)
23
+ print(f"Retrieved llama token: {llama[:5]}... (first 5 chars for security)")
24
+
25
  # Authenticate with Hugging Face
26
  huggingface_hub.login(token=llama)
27