Spaces:
Sleeping
Sleeping
Removed edit error
Browse files- routers/inference.py +1 -1
routers/inference.py
CHANGED
@@ -32,7 +32,7 @@ async def run_inference(file: Optional[UploadFile] = File(None), image_url: Opti
|
|
32 |
model_in_use: str = Form('donut')):
|
33 |
|
34 |
|
35 |
-
result = []
|
36 |
if file:
|
37 |
# Ensure the uploaded file is a JPG image
|
38 |
if file.content_type not in ["image/jpeg", "image/jpg"]:
|
|
|
32 |
model_in_use: str = Form('donut')):
|
33 |
|
34 |
|
35 |
+
result = []
|
36 |
if file:
|
37 |
# Ensure the uploaded file is a JPG image
|
38 |
if file.content_type not in ["image/jpeg", "image/jpg"]:
|