Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ HF = os.getenv("HF_SECRET")
|
|
| 10 |
recipe_generator = pipeline("text2text-generation", model="flax-community/t5-recipe-generation")
|
| 11 |
|
| 12 |
API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
|
| 13 |
-
headers = {'Authorization': f'Bearer '}
|
| 14 |
|
| 15 |
def query(payload):
|
| 16 |
response = requests.post(API_URL, headers=headers, json=payload)
|
|
|
|
| 10 |
recipe_generator = pipeline("text2text-generation", model="flax-community/t5-recipe-generation")
|
| 11 |
|
| 12 |
API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
|
| 13 |
+
headers = {'Authorization': f'Bearer {HF}'}
|
| 14 |
|
| 15 |
def query(payload):
|
| 16 |
response = requests.post(API_URL, headers=headers, json=payload)
|