Kvikontent commited on
Commit
adfb7f6
β€’
1 Parent(s): 3ca1d70

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -7,10 +7,7 @@ import os
7
 
8
  API_TOKEN = os.environ["API_KEY"] # replace with your own API Token here
9
  API_URL = "https://api-inference.huggingface.co/models/Kvikontent/kviimager2.0"
10
- HEADERS = {
11
- 'Content-Type': 'application/json',
12
- 'Authorization': f'{API_TOKEN}'
13
- }
14
 
15
  def predictor(prompt):
16
  payload = {'inputs': prompt}
 
7
 
8
  API_TOKEN = os.environ["API_KEY"] # replace with your own API Token here
9
  API_URL = "https://api-inference.huggingface.co/models/Kvikontent/kviimager2.0"
10
+ HEADERS = {'Authorization': f'Bearer {API_KEY}'}
 
 
 
11
 
12
  def predictor(prompt):
13
  payload = {'inputs': prompt}