Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ def plot_image(image, boxes):
|
|
80 |
# plt.show()
|
81 |
fig.subplots_adjust(left=0, right=1, top=1, bottom=0)
|
82 |
ax.axis('off')
|
83 |
-
plt.savefig('
|
84 |
|
85 |
|
86 |
# Inference function
|
@@ -129,7 +129,7 @@ def inference(inp_image):
|
|
129 |
|
130 |
|
131 |
plot_image(org_image, nms_boxes)
|
132 |
-
plotted_img = '
|
133 |
return plotted_img
|
134 |
|
135 |
inputs = gr.inputs.Image(label="Original Image")
|
|
|
80 |
# plt.show()
|
81 |
fig.subplots_adjust(left=0, right=1, top=1, bottom=0)
|
82 |
ax.axis('off')
|
83 |
+
plt.savefig('inference.png')
|
84 |
|
85 |
|
86 |
# Inference function
|
|
|
129 |
|
130 |
|
131 |
plot_image(org_image, nms_boxes)
|
132 |
+
plotted_img = 'inference.png'
|
133 |
return plotted_img
|
134 |
|
135 |
inputs = gr.inputs.Image(label="Original Image")
|