Spaces:
Runtime error
Runtime error
Vivien Chappelier
commited on
Commit
Β·
ff7c05e
1
Parent(s):
2880299
fix header
Browse files
app.py
CHANGED
|
@@ -100,7 +100,7 @@ class BZHStableSignatureDemo(object):
|
|
| 100 |
api_key = os.getenv('BZH_API_KEY')
|
| 101 |
print("api_key = ", api_key)
|
| 102 |
if api_key:
|
| 103 |
-
headers['
|
| 104 |
print("headers = ", headers)
|
| 105 |
response = requests.post('https://bzh.imatag.com/bzh/api/v1.0/detect',
|
| 106 |
json=data, headers=headers)
|
|
|
|
| 100 |
api_key = os.getenv('BZH_API_KEY')
|
| 101 |
print("api_key = ", api_key)
|
| 102 |
if api_key:
|
| 103 |
+
headers['x-bzh-api-key'] = api_key
|
| 104 |
print("headers = ", headers)
|
| 105 |
response = requests.post('https://bzh.imatag.com/bzh/api/v1.0/detect',
|
| 106 |
json=data, headers=headers)
|