Spaces:
Paused
Paused
Update app/main.py
Browse files- app/main.py +1 -1
app/main.py
CHANGED
|
@@ -14,7 +14,7 @@ client = Client(SPACE_ID)
|
|
| 14 |
|
| 15 |
# Security setup
|
| 16 |
security = HTTPBearer()
|
| 17 |
-
VALID_API_KEY = "
|
| 18 |
|
| 19 |
async def get_api_key(credentials: HTTPAuthorizationCredentials = Depends(security)):
|
| 20 |
if credentials.scheme != "Bearer":
|
|
|
|
| 14 |
|
| 15 |
# Security setup
|
| 16 |
security = HTTPBearer()
|
| 17 |
+
VALID_API_KEY = os.getenv("API_KEY") # Replace with your actual API key
|
| 18 |
|
| 19 |
async def get_api_key(credentials: HTTPAuthorizationCredentials = Depends(security)):
|
| 20 |
if credentials.scheme != "Bearer":
|