Gosula commited on
Commit
3a88fe8
1 Parent(s): 099e5bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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('examples/inference.png')
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 = 'examples/inference.png'
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")