Spaces:
Runtime error
Runtime error
Commit ·
9b330cf
1
Parent(s): 8ed160b
updated
Browse files
app.py
CHANGED
|
@@ -14,8 +14,8 @@ api_key_header = APIKeyHeader(name=API_KEY_NAME, auto_error=False)
|
|
| 14 |
|
| 15 |
|
| 16 |
async def get_api_key(api_key: str = Depends(api_key_header)):
|
| 17 |
-
|
| 18 |
-
|
| 19 |
# if api_key != API_KEY:
|
| 20 |
# raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail="Invalid API Key")
|
| 21 |
return api_key
|
|
|
|
| 14 |
|
| 15 |
|
| 16 |
async def get_api_key(api_key: str = Depends(api_key_header)):
|
| 17 |
+
print(f"Received API Key: {api_key}")
|
| 18 |
+
print(f"Expected API Key from environment: {API_KEY}")
|
| 19 |
# if api_key != API_KEY:
|
| 20 |
# raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail="Invalid API Key")
|
| 21 |
return api_key
|