Diego Salinas commited on
Commit
2339751
·
verified ·
1 Parent(s): 62393ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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()