skanderovitch
commited on
Commit
•
1c61dbb
1
Parent(s):
b3d2d81
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ async def extract_features(file: UploadFile = File(...), secret_key: str = Heade
|
|
33 |
try:
|
34 |
# Verify the SECRET_KEY
|
35 |
if secret_key != SECRET_KEY:
|
36 |
-
raise HTTPException(status_code=403, detail="Invalid SECRET_KEY")
|
37 |
|
38 |
# Validate file format
|
39 |
if file.content_type not in ["image/jpeg", "image/png", "image/jpg"]:
|
|
|
33 |
try:
|
34 |
# Verify the SECRET_KEY
|
35 |
if secret_key != SECRET_KEY:
|
36 |
+
raise HTTPException(status_code=403, detail=f"Invalid SECRET_KEY {secret_key} vs {SECRET_KEY}")
|
37 |
|
38 |
# Validate file format
|
39 |
if file.content_type not in ["image/jpeg", "image/png", "image/jpg"]:
|