wahab5763 commited on
Commit
2f6ed3f
·
verified ·
1 Parent(s): 8733506

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def authenticate_client():
22
  Retrieves the 'TextToImage' token (stored as HF_TOKEN secret)
23
  from the Space environment.
24
  """
25
- hf_token = os.getenv("HF_TOKEN")
26
  if not hf_token:
27
  raise ValueError("HF_TOKEN secret not found. Please add your 'TextToImage' token to Space Secrets.")
28
  return InferenceClient(token=hf_token)
 
22
  Retrieves the 'TextToImage' token (stored as HF_TOKEN secret)
23
  from the Space environment.
24
  """
25
+ hf_token = os.getenv("TextToImage")
26
  if not hf_token:
27
  raise ValueError("HF_TOKEN secret not found. Please add your 'TextToImage' token to Space Secrets.")
28
  return InferenceClient(token=hf_token)