Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from sklearn.linear_model import LinearRegression
|
|
5 |
import plotly.graph_objects as go
|
6 |
|
7 |
def train_predict_wrapper(ticker, start_date, end_date, prediction_days):
|
8 |
-
# Download
|
9 |
data = yf.download(ticker, start=start_date, end=end_date)
|
10 |
data = data["Close"]
|
11 |
|
@@ -47,7 +47,7 @@ def train_predict_wrapper(ticker, start_date, end_date, prediction_days):
|
|
47 |
fig.add_trace(historical_prices)
|
48 |
fig.add_trace(predicted_prices_trace)
|
49 |
fig.update_layout(
|
50 |
-
title="
|
51 |
xaxis_title="Date",
|
52 |
yaxis_title="Price",
|
53 |
legend_title_text="Data"
|
|
|
5 |
import plotly.graph_objects as go
|
6 |
|
7 |
def train_predict_wrapper(ticker, start_date, end_date, prediction_days):
|
8 |
+
# Download asset data
|
9 |
data = yf.download(ticker, start=start_date, end=end_date)
|
10 |
data = data["Close"]
|
11 |
|
|
|
47 |
fig.add_trace(historical_prices)
|
48 |
fig.add_trace(predicted_prices_trace)
|
49 |
fig.update_layout(
|
50 |
+
title="Asset Price Prediction",
|
51 |
xaxis_title="Date",
|
52 |
yaxis_title="Price",
|
53 |
legend_title_text="Data"
|