Spaces:
Sleeping
Sleeping
Smart-Trader-EA commited on
Commit ·
cbd3797
1
Parent(s): 0596210
Deploy stock analysis app
Browse files- app.py +1 -1
- requirements.txt +6 -6
app.py
CHANGED
|
@@ -19,7 +19,7 @@ def analyze_stock(ticker):
|
|
| 19 |
|
| 20 |
df = hist[['Close']].reset_index()
|
| 21 |
df.columns = ['ds', 'y']
|
| 22 |
-
model = Prophet(daily_seasonality=True)
|
| 23 |
model.fit(df)
|
| 24 |
future = model.make_future_dataframe(periods=7)
|
| 25 |
forecast = model.predict(future)
|
|
|
|
| 19 |
|
| 20 |
df = hist[['Close']].reset_index()
|
| 21 |
df.columns = ['ds', 'y']
|
| 22 |
+
model = Prophet(daily_seasonality=True, yearly_seasonality=True)
|
| 23 |
model.fit(df)
|
| 24 |
future = model.make_future_dataframe(periods=7)
|
| 25 |
forecast = model.predict(future)
|
requirements.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
gradio==4.
|
| 2 |
-
yfinance==0.2.
|
| 3 |
-
pandas==2.
|
| 4 |
-
numpy==1.26.
|
| 5 |
-
plotly==5.
|
| 6 |
-
prophet==1.1.
|
|
|
|
| 1 |
+
gradio==4.29.0
|
| 2 |
+
yfinance==0.2.37
|
| 3 |
+
pandas==2.2.2
|
| 4 |
+
numpy==1.26.4
|
| 5 |
+
plotly==5.22.0
|
| 6 |
+
prophet==1.1.6
|