Update app.py
Browse files
app.py
CHANGED
|
@@ -53,7 +53,7 @@ def predict(stock_name):
|
|
| 53 |
# Fetch the data used to train the model
|
| 54 |
time_period_news = "30d"
|
| 55 |
time_period_price = "3mo" # Needed to make sure we get 30 days of price data. Stock markets are closed on weekends and holidays
|
| 56 |
-
data_loader =
|
| 57 |
data = data_loader.get_data()
|
| 58 |
|
| 59 |
# Get the previous closing price
|
|
|
|
| 53 |
# Fetch the data used to train the model
|
| 54 |
time_period_news = "30d"
|
| 55 |
time_period_price = "3mo" # Needed to make sure we get 30 days of price data. Stock markets are closed on weekends and holidays
|
| 56 |
+
data_loader = InferenceDataPipeline(ticker, time_period_news, time_period_price)
|
| 57 |
data = data_loader.get_data()
|
| 58 |
|
| 59 |
# Get the previous closing price
|