Spaces:
Sleeping
Sleeping
Diego Salinas commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def create_portfolio_graph():
|
|
| 20 |
height = bar.get_height()
|
| 21 |
ax.text(bar.get_x() + bar.get_width() / 2, height, f'{percentage*100:.0f}%', ha='center', va='bottom')
|
| 22 |
|
| 23 |
-
# Save the plot as an image
|
| 24 |
image_path = "/mnt/data/portfolio_chart.png"
|
| 25 |
plt.savefig(image_path)
|
| 26 |
plt.close()
|
|
|
|
| 20 |
height = bar.get_height()
|
| 21 |
ax.text(bar.get_x() + bar.get_width() / 2, height, f'{percentage*100:.0f}%', ha='center', va='bottom')
|
| 22 |
|
| 23 |
+
# Save the plot as an image within the Gradio workspace
|
| 24 |
image_path = "/mnt/data/portfolio_chart.png"
|
| 25 |
plt.savefig(image_path)
|
| 26 |
plt.close()
|