Spaces:
Runtime error
Runtime error
Commit
·
868f009
1
Parent(s):
3937df0
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from PIL import Image
|
|
7 |
|
8 |
API_URL = "https://api-inference.huggingface.co/models/CompVis/stable-diffusion-v1-4"
|
9 |
API_TOKEN = os.getenv("HF_READ_TOKEN")
|
10 |
-
headers = {"Authorization":
|
11 |
|
12 |
|
13 |
def query(prompt, is_negative=False, image_style="None style", steps=8, cfg_scale=7, seed=None, num_images=4):
|
|
|
7 |
|
8 |
API_URL = "https://api-inference.huggingface.co/models/CompVis/stable-diffusion-v1-4"
|
9 |
API_TOKEN = os.getenv("HF_READ_TOKEN")
|
10 |
+
headers = {"Authorization": "Bearer {API_TOKEN}"}
|
11 |
|
12 |
|
13 |
def query(prompt, is_negative=False, image_style="None style", steps=8, cfg_scale=7, seed=None, num_images=4):
|