Spaces:
Sleeping
Sleeping
Removed reference to sparrow key (#2)
Browse files- Removed reference to sparrow key (30675414dadec40e5004b8ffbaf254baf6db09b1)
- 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')
|
33 |
|
34 |
-
|
35 |
-
|
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"]:
|