Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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}
|