Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ 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 |
-
API_TOKEN = os.environ.get("
|
55 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
56 |
|
57 |
|
|
|
51 |
API_URL = "https://api-inference.huggingface.co/models/playgroundai/playground-v2-1024px-aesthetic"
|
52 |
|
53 |
|
54 |
+
API_TOKEN = os.environ.get("HF_TOKEN")
|
55 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
56 |
|
57 |
|