Faisal-Data commited on
Commit
24e60ed
·
verified ·
1 Parent(s): 5f7a778

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,7 +61,7 @@ def plot_stock_prices(stock_name, current_price, future_price):
61
  plt.ylim(min(current_price, future_price) - 1, max(current_price, future_price) + 1)
62
 
63
  # Save the plot
64
- plt.savefig('/content/sample_data/graph.png')
65
  plt.close()
66
 
67
  # Function to get stock information and predict future price and make the summary
@@ -120,7 +120,7 @@ def get_stock_info(stock_name):
120
  "السعر المتوقع": future_price,
121
  "التوقع والملخص": summary_prompt + summary,
122
  "مقال ويكيبيديا الكامل": wiki_summary
123
- }, "/content/sample_data/graph.png"
124
 
125
  # Create the Gradio interface
126
  iface = gr.Interface(
 
61
  plt.ylim(min(current_price, future_price) - 1, max(current_price, future_price) + 1)
62
 
63
  # Save the plot
64
+ plt.savefig('graph.png')
65
  plt.close()
66
 
67
  # Function to get stock information and predict future price and make the summary
 
120
  "السعر المتوقع": future_price,
121
  "التوقع والملخص": summary_prompt + summary,
122
  "مقال ويكيبيديا الكامل": wiki_summary
123
+ }, "graph.png"
124
 
125
  # Create the Gradio interface
126
  iface = gr.Interface(