dindizz commited on
Commit
53b2eef
·
verified ·
1 Parent(s): 1f2f705

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -33,8 +33,10 @@ def plot_body_shape(bri):
33
  plt.title("Body Shape with BRI Reference")
34
 
35
  # Save and return the plot
36
- plt.savefig('/mnt/data/bri_plot.png')
37
- return '/mnt/data/bri_plot.png'
 
 
38
 
39
  # Function to provide a summary
40
  def bri_summary(bri):
 
33
  plt.title("Body Shape with BRI Reference")
34
 
35
  # Save and return the plot
36
+ plot_path = "bri_plot.png"
37
+ plt.savefig(plot_path)
38
+ plt.close(fig) # Close the figure to free up memory
39
+ return plot_path
40
 
41
  # Function to provide a summary
42
  def bri_summary(bri):