Gosula commited on
Commit
8c2ccb6
1 Parent(s): 0a54960

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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('examples/inference.png')
83
 
84
 
85
  # Inference function
 
128
 
129
 
130
  plot_image(org_image, nms_boxes)
131
+ plotted_img = 'examples/inference.png'
132
  return plotted_img
133
 
134
  inputs = gr.inputs.Image(label="Original Image")