Kvikontent commited on
Commit
50986e7
1 Parent(s): db94c9a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ st.sidebar.subheader("By KVI Kontent")
9
  st.sidebar.write("Choose model and enter prompt")
10
  api_key = os.environ['api_key']
11
  API_URL_DALLE = "https://api-inference.huggingface.co/models/openskyml/dalle-3-xl"
12
- headers = {"Authorization": api_key}
13
 
14
  model = st.sidebar.selectbox("Choose Model", ("prodia", "pollinations", "Dall-e 3"))
15
 
 
9
  st.sidebar.write("Choose model and enter prompt")
10
  api_key = os.environ['api_key']
11
  API_URL_DALLE = "https://api-inference.huggingface.co/models/openskyml/dalle-3-xl"
12
+ headers = {"Authorization": f"Bearer {api_key}"}
13
 
14
  model = st.sidebar.selectbox("Choose Model", ("prodia", "pollinations", "Dall-e 3"))
15