Update app.py
Browse files
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('
|
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 |
-
}, "
|
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(
|