This project is a Python 3-based API for time series forecasting using Google Cloud Platforms, Flask, & Streamlit. It supports multiple forecasting models, including Prophet, Arima, Arima+, TimesFM, AutoML. Users can upload a dataset.csv file, specify the column to predict, and select the forecasting model to use. The API will process the data and return the predictions.
- Upload Dataset: Users can upload a CSV file containing the time series data.
- Model Selection: Users can choose from various forecasting models, including Prophet.
- Column Specification: Users specify which column in the dataset they want to predict.
- Predictions: The API processes the data and returns the forecasted values.
- Python 3.11
- Flask for creating the API
- Streamlit
- Requirements.txt
- Clone the repository:
git clone https://github.com/yourusername/forecasting-api.git cd forecasting-api
pip install -r requirements.txt
uvicorn flask_server_2:asgi_app --host localhost --port 5000 --reload
Interact with the streamlit UI to upload csv to model.
curl -X POST "http://localhost:5000/predict" \ -F "file=@path/to/your/dataset.csv" \ -F "column=your_column_name" \ -F "model=prophet"
The API will return the forecasted values based on the specified model.
- For AutoML, an endpoint must be deployed within the streamlit app.
Contributions are welcome! Please submit a pull request or open an issue to discuss any changes.
License This project is licensed under the MIT License. See the LICENSE file for details.
Contact For any questions or suggestions, please contact GenZ.