Rakesh443 commited on
Commit
9c26ab1
·
verified ·
1 Parent(s): 6b88de3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,9 +9,9 @@ import os
9
 
10
  # Create a text input
11
 
12
- api_key = os.getenv("ImageGenerating2")
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
 
 
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