Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -51,8 +51,8 @@ def generate_txt2img(current_model, prompt, is_negative=False, image_style="None
|
|
51 |
API_URL = "https://api-inference.huggingface.co/models/playgroundai/playground-v2-1024px-aesthetic"
|
52 |
|
53 |
|
54 |
-
|
55 |
-
headers = {"Authorization":
|
56 |
|
57 |
|
58 |
if image_style == "None style":
|
|
|
51 |
API_URL = "https://api-inference.huggingface.co/models/playgroundai/playground-v2-1024px-aesthetic"
|
52 |
|
53 |
|
54 |
+
API_KEY = os.environ.get("API_KEY")
|
55 |
+
headers = {"Authorization": f"Bearer {API_KEY}"}
|
56 |
|
57 |
|
58 |
if image_style == "None style":
|