Spaces:
Sleeping
Sleeping
| title: Stock Forecast App | |
| emoji: π | |
| colorFrom: indigo | |
| colorTo: indigo | |
| sdk: docker | |
| pinned: false | |
| license: mit | |
| short_description: Stock Prediction using Flask framework | |
| Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference | |
| # π§ Stock Price Predictor β Flask + Random Forest | |
| A machine learning web app built using Flask and deployed on Hugging Face Spaces with Docker. | |
| It predicts future stock prices using historical Yahoo Finance data and Random Forest regression. | |
| --- | |
| ## π Tech Stack | |
| - **Flask** β Web framework to build the backend logic and user interface. | |
| - **Gunicorn** β WSGI production server for running Flask apps. | |
| - **YFinance** β Fetches live and historical stock data. | |
| - **Scikit-learn** β Implements the Random Forest prediction model. | |
| - **Pandas & NumPy** β For data manipulation and mathematical operations. | |
| --- | |
| ## βοΈ Features | |
| β Fetch 5 years of stock data from Yahoo Finance | |
| β Compute indicators (RSI, MACD, Moving Averages) | |
| β Predict next 30-day prices using Random Forest | |
| β Detect trend (Bullish / Bearish / Sideways) | |
| β Suggest entry and stop-loss points | |
| β Display detailed report and 30-day recent table | |
| --- | |
| ## π³ Deployment on Hugging Face | |
| This Space uses **Docker runtime**. | |
| ### Files used: | |
| - `Dockerfile` β Defines the container environment | |
| - `requirements.txt` β Lists Python dependencies | |
| - `app.py` β Contains Flask application logic | |
| To deploy: | |
| 1. Create a new **Hugging Face Space**. | |
| 2. Choose **Docker** as the SDK. | |
| 3. Upload `app.py`, `requirements.txt`, and `Dockerfile`. | |
| 4. Click **Deploy Space** β your Flask app will run automatically on port **7860**. | |