Spaces:
Sleeping
Sleeping
Commit
·
a8cbb3f
1
Parent(s):
8f60eb0
trying something differente
Browse files
main.py
CHANGED
@@ -29,9 +29,9 @@ async def verify_api_key(request, call_next):
|
|
29 |
if api_key is None or api_key not in VALID_API_KEYS:
|
30 |
logging.warning("Unauthorized access attempt.")
|
31 |
raise HTTPException(status_code=403, detail="Unauthorized")
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
|
36 |
|
37 |
print(hf_token)
|
|
|
29 |
if api_key is None or api_key not in VALID_API_KEYS:
|
30 |
logging.warning("Unauthorized access attempt.")
|
31 |
raise HTTPException(status_code=403, detail="Unauthorized")
|
32 |
+
else:
|
33 |
+
response = await call_next(request)
|
34 |
+
return response
|
35 |
|
36 |
|
37 |
print(hf_token)
|