Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,11 +61,11 @@ reader = load_model() #load model
|
|
| 61 |
if image is not None:
|
| 62 |
|
| 63 |
input_image = input_image = Image.open(image) #read image
|
| 64 |
-
input_image = ImageOps.exif_transpose(input_image
|
| 65 |
input_image = np.array(input_image )
|
| 66 |
# Convert RGB to BGR
|
| 67 |
input_image = input_image[:, :, ::-1].copy()
|
| 68 |
-
|
| 69 |
|
| 70 |
with st.spinner("🤖 AI is at Work! "):
|
| 71 |
result = detect(input_image, reader)
|
|
|
|
| 61 |
if image is not None:
|
| 62 |
|
| 63 |
input_image = input_image = Image.open(image) #read image
|
| 64 |
+
input_image = ImageOps.exif_transpose(input_image)
|
| 65 |
input_image = np.array(input_image )
|
| 66 |
# Convert RGB to BGR
|
| 67 |
input_image = input_image[:, :, ::-1].copy()
|
| 68 |
+
|
| 69 |
|
| 70 |
with st.spinner("🤖 AI is at Work! "):
|
| 71 |
result = detect(input_image, reader)
|