Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 37 |
-
|
|
|
|
|
|
|
| 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):
|