SJCET2 commited on
Commit
a659d08
·
verified ·
1 Parent(s): a9ef680

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ import os
6
 
7
  # API Configuration
8
  API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev"
9
- headers = {"Authorization": f"Bearer {os.getenv('HUGGINGFACE_API_KEY')}"}
10
 
11
  # Function to query the Hugging Face API
12
  def query(payload):
 
6
 
7
  # API Configuration
8
  API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-dev"
9
+ headers = {"Authorization": f"Bearer {os.getenv('HF')}"}
10
 
11
  # Function to query the Hugging Face API
12
  def query(payload):