Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,6 @@ API_URL = "https://api-inference.huggingface.co/models/black-forest-labs/FLUX.1-
|
|
9 |
headers = {"Authorization": f"Bearer {os.getenv('HF')}"}
|
10 |
|
11 |
# Function to query the Hugging Face API
|
12 |
-
@st.cache_data(ttl=60)
|
13 |
def query(payload):
|
14 |
response = requests.post(API_URL, headers=headers, json=payload)
|
15 |
return response.content
|
|
|
9 |
headers = {"Authorization": f"Bearer {os.getenv('HF')}"}
|
10 |
|
11 |
# Function to query the Hugging Face API
|
|
|
12 |
def query(payload):
|
13 |
response = requests.post(API_URL, headers=headers, json=payload)
|
14 |
return response.content
|