Spaces:
Sleeping
Sleeping
Yarik
commited on
Commit
•
7833469
1
Parent(s):
c0deafa
Add application file
Browse files
app.py
CHANGED
@@ -137,6 +137,7 @@ class ArgParser(argparse.ArgumentParser):
|
|
137 |
api_key_header = APIKeyHeader(name="access_token", auto_error=False)
|
138 |
|
139 |
def getAPIKey(api_key_header: str = Security(api_key_header)):
|
|
|
140 |
if api_key_header == api_key:
|
141 |
return api_key_header
|
142 |
raise HTTPException(
|
|
|
137 |
api_key_header = APIKeyHeader(name="access_token", auto_error=False)
|
138 |
|
139 |
def getAPIKey(api_key_header: str = Security(api_key_header)):
|
140 |
+
print(api_key_header)
|
141 |
if api_key_header == api_key:
|
142 |
return api_key_header
|
143 |
raise HTTPException(
|