Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def predict_next_days(model, last_60_days, scaler):
|
|
47 |
def plot_graph(data, predicted_prices):
|
48 |
plt.figure(figsize=(14, 5))
|
49 |
plt.plot(data['Close'], label='Historical Prices', color='blue')
|
50 |
-
plt.
|
51 |
plt.title('Stock Price Prediction')
|
52 |
plt.xlabel('Date')
|
53 |
plt.ylabel('Stock Price')
|
@@ -88,5 +88,7 @@ gr.Interface(
|
|
88 |
gr.Date(label="Start Date"),
|
89 |
gr.Date(label="End Date"),
|
90 |
],
|
91 |
-
outputs=
|
|
|
|
|
92 |
).launch()
|
|
|
47 |
def plot_graph(data, predicted_prices):
|
48 |
plt.figure(figsize=(14, 5))
|
49 |
plt.plot(data['Close'], label='Historical Prices', color='blue')
|
50 |
+
plt.axhline(y=predicted_prices, color='red', linestyle='--', label='Predicted Price')
|
51 |
plt.title('Stock Price Prediction')
|
52 |
plt.xlabel('Date')
|
53 |
plt.ylabel('Stock Price')
|
|
|
88 |
gr.Date(label="Start Date"),
|
89 |
gr.Date(label="End Date"),
|
90 |
],
|
91 |
+
outputs="json",
|
92 |
+
title="Stock Prediction App",
|
93 |
+
description="This app predicts stock prices based on historical data."
|
94 |
).launch()
|