Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,9 +9,9 @@ import os
|
|
9 |
|
10 |
# Create a text input
|
11 |
|
12 |
-
|
13 |
API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
|
14 |
-
headers = {"Authorization": "
|
15 |
|
16 |
user_input = st.text_input("Enter your text here:")
|
17 |
|
|
|
9 |
|
10 |
# Create a text input
|
11 |
|
12 |
+
API_KEY = os.environ("API_KEY")
|
13 |
API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
|
14 |
+
headers = {"Authorization": f"Bearer {API_KEY}"}
|
15 |
|
16 |
user_input = st.text_input("Enter your text here:")
|
17 |
|