Hivra commited on
Commit
9e26f23
·
verified ·
1 Parent(s): 41a8f4f

Update app/main.py

Browse files
Files changed (1) hide show
  1. 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 = "sk-1234" # Replace with your actual 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":