Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -116,7 +116,7 @@ def show_preds_image(filepath):
|
|
| 116 |
img0 = cv2.imread(filepath)
|
| 117 |
img_with_boxes = draw_bounding_boxes(img0, results)
|
| 118 |
return cv2.cvtColor(img_with_boxes, cv2.COLOR_BGR2RGB)
|
| 119 |
-
|
| 120 |
# Define Gradio components
|
| 121 |
input_component = gr.components.Image(type="filepath", label="Input Image")
|
| 122 |
output_component = gr.components.Image(type="numpy", label="Output Image")
|
|
|
|
| 116 |
img0 = cv2.imread(filepath)
|
| 117 |
img_with_boxes = draw_bounding_boxes(img0, results)
|
| 118 |
return cv2.cvtColor(img_with_boxes, cv2.COLOR_BGR2RGB)
|
| 119 |
+
|
| 120 |
# Define Gradio components
|
| 121 |
input_component = gr.components.Image(type="filepath", label="Input Image")
|
| 122 |
output_component = gr.components.Image(type="numpy", label="Output Image")
|