Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -95,7 +95,7 @@ def show_preds_image(image_path,model_selection):
|
|
| 95 |
text_y = int(height / 2)
|
| 96 |
font_scale = 2
|
| 97 |
cv2.putText(img, mux_value, (text_x, text_y), cv2.FONT_HERSHEY_SIMPLEX, font_scale, (255, 0, 0), 2, cv2.LINE_AA)"""
|
| 98 |
-
|
| 99 |
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
|
| 100 |
img = cv2.resize(img, (224, 224))
|
| 101 |
height, width, _ = img.shape
|
|
|
|
| 95 |
text_y = int(height / 2)
|
| 96 |
font_scale = 2
|
| 97 |
cv2.putText(img, mux_value, (text_x, text_y), cv2.FONT_HERSHEY_SIMPLEX, font_scale, (255, 0, 0), 2, cv2.LINE_AA)"""
|
| 98 |
+
img = cv2.imread(image_path)
|
| 99 |
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
|
| 100 |
img = cv2.resize(img, (224, 224))
|
| 101 |
height, width, _ = img.shape
|