Spaces:
Runtime error
Runtime error
Commit
•
5b4db57
1
Parent(s):
5ba62fe
Update app.py
Browse files
app.py
CHANGED
@@ -147,9 +147,6 @@ def img_object_detection_to_json(file: bytes = File(...)):
|
|
147 |
# Step 2: Convert the image file to an image object
|
148 |
input_image = get_image_from_bytes(file)
|
149 |
|
150 |
-
with open('image.jpg','wb') as image:
|
151 |
-
image.write(file)
|
152 |
-
image.close()
|
153 |
|
154 |
# Step 3: Predict from model
|
155 |
results = detect_sample_model_origin(input_image)
|
|
|
147 |
# Step 2: Convert the image file to an image object
|
148 |
input_image = get_image_from_bytes(file)
|
149 |
|
|
|
|
|
|
|
150 |
|
151 |
# Step 3: Predict from model
|
152 |
results = detect_sample_model_origin(input_image)
|