Spaces:
Sleeping
Sleeping
Vivien Chappelier
commited on
Commit
•
7cfd7ed
1
Parent(s):
ff7c05e
remove debug
Browse files
app.py
CHANGED
@@ -98,10 +98,8 @@ class BZHStableSignatureDemo(object):
|
|
98 |
|
99 |
headers = {}
|
100 |
api_key = os.getenv('BZH_API_KEY')
|
101 |
-
print("api_key = ", api_key)
|
102 |
if api_key:
|
103 |
-
headers['x-
|
104 |
-
print("headers = ", headers)
|
105 |
response = requests.post('https://bzh.imatag.com/bzh/api/v1.0/detect',
|
106 |
json=data, headers=headers)
|
107 |
response.raise_for_status()
|
|
|
98 |
|
99 |
headers = {}
|
100 |
api_key = os.getenv('BZH_API_KEY')
|
|
|
101 |
if api_key:
|
102 |
+
headers['x-api-key'] = api_key
|
|
|
103 |
response = requests.post('https://bzh.imatag.com/bzh/api/v1.0/detect',
|
104 |
json=data, headers=headers)
|
105 |
response.raise_for_status()
|