acecalisto3 commited on
Commit
fb49268
·
verified ·
1 Parent(s): 640665e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ constraints = (
27
  def generate_image(prompt):
28
  print("Generating image with prompt:", prompt)
29
  api_url = f"https://api-inference.huggingface.co/models/{repo}"
30
- # token = os.getenv("API_TOKEN") # Uncomment and use your Hugging Face API token
31
  headers = {
32
  # "Authorization": f"Bearer {token}"
33
  }
 
27
  def generate_image(prompt):
28
  print("Generating image with prompt:", prompt)
29
  api_url = f"https://api-inference.huggingface.co/models/{repo}"
30
+ token = os.getenv("HF_TOKEN") # Uncomment and use your Hugging Face API token
31
  headers = {
32
  # "Authorization": f"Bearer {token}"
33
  }