Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,13 +5,36 @@ import matplotlib.pyplot as plt
|
|
5 |
import yfinance as yf
|
6 |
|
7 |
st.set_page_config(
|
8 |
-
page_title="
|
9 |
page_icon="logo.png",
|
10 |
menu_items=None
|
11 |
)
|
12 |
|
13 |
st.write("# US Stocks Forecast")
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
# Importing forecasting algorithms from the algo directory
|
16 |
from algo.sarima import sarima_forecast
|
17 |
from algo.linear_regression import linear_regression_forecast
|
|
|
5 |
import yfinance as yf
|
6 |
|
7 |
st.set_page_config(
|
8 |
+
page_title="netflypsb",
|
9 |
page_icon="logo.png",
|
10 |
menu_items=None
|
11 |
)
|
12 |
|
13 |
st.write("# US Stocks Forecast")
|
14 |
|
15 |
+
st.markdown(
|
16 |
+
"""
|
17 |
+
## ππ Forecast Future Stock Price
|
18 |
+
|
19 |
+
|
20 |
+
π This app predicts 2 things: future price trajectory and future price
|
21 |
+
## How to use it? π
|
22 |
+
- **1. Choose a ticker**: Write the ticker symbol for the stock you want to trade/invest. Currently only supports US stocks. π
|
23 |
+
- **2. Choose analysis length**: Pick the start date and the end date for the data you want to use in the prediction. More is not necessarily better! π₯
|
24 |
+
- **3. Choose horizon**: How far into the future do you want the app to predict. Shorter is mathematically better!
|
25 |
+
- **4. Choose prediction day**: Choose ONE (1) day within the horizon that you picked in step 3. to see the predicted price for that day. π
|
26 |
+
- **5. Press Analyze** ππ
|
27 |
+
|
28 |
+
|
29 |
+
## Let's Connect! π
|
30 |
+
- If you liked this app, see my other projects at:
|
31 |
+
- [β My Buy Me a Coffee Page](https://www.buymeacoffee.com/magister)
|
32 |
+
- [π€ My Huggingface Page](https://huggingface.co/netflypsb)
|
33 |
+
- [π¦ My X Account](https://twitter.com/VeloVates)
|
34 |
+
|
35 |
+
"""
|
36 |
+
)
|
37 |
+
|
38 |
# Importing forecasting algorithms from the algo directory
|
39 |
from algo.sarima import sarima_forecast
|
40 |
from algo.linear_regression import linear_regression_forecast
|