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