waceke commited on
Commit
cea6a59
·
1 Parent(s): 5050d03

Removed reference to sparrow key (#2)

Browse files

- Removed reference to sparrow key (30675414dadec40e5004b8ffbaf254baf6db09b1)

Files changed (1) hide show
  1. routers/inference.py +3 -5
routers/inference.py CHANGED
@@ -29,12 +29,10 @@ def count_values(obj):
29
 
30
  @router.post("/inference")
31
  async def run_inference(file: Optional[UploadFile] = File(None), image_url: Optional[str] = Form(None),
32
- model_in_use: str = Form('donut'), sparrow_key: str = Form(None)):
33
 
34
- if sparrow_key != settings.sparrow_key:
35
- return {"error": "Invalid Sparrow key."}
36
-
37
- result = []
38
  if file:
39
  # Ensure the uploaded file is a JPG image
40
  if file.content_type not in ["image/jpeg", "image/jpg"]:
 
29
 
30
  @router.post("/inference")
31
  async def run_inference(file: Optional[UploadFile] = File(None), image_url: Optional[str] = Form(None),
32
+ model_in_use: str = Form('donut')):
33
 
34
+
35
+ result = []ssssssssssssssssssssssssssssss
 
 
36
  if file:
37
  # Ensure the uploaded file is a JPG image
38
  if file.content_type not in ["image/jpeg", "image/jpg"]: