acecalisto3 commited on
Commit
449d115
·
verified ·
1 Parent(s): ad767bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,9 +27,9 @@ 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
  }
34
 
35
  # Incorporate the hard set prompt and 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")
31
  headers = {
32
+ "Authorization": f"Bearer {token}"
33
  }
34
 
35
  # Incorporate the hard set prompt and constraints