File size: 2,221 Bytes
63ea372 911f9b1 63ea372 906e708 63ea372 6f4e0b0 988e204 63ea372 7ab79fb 462fe30 7ab79fb f3a9a4d 00aa3f6 f3a9a4d 7ab79fb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
---
title: Time Series Decomposition Demo
emoji: π
colorFrom: green
colorTo: blue
sdk: streamlit
sdk_version: 1.21.0
app_file: app.py
pinned: false
license: openrail
---
# Time series decomposition tool
Tool demonstrating time series decomposition in Python.
Assumes uploaded data is clean.
## Built With
- [Streamlit](https://streamlit.io/)
## Local setup
### Obtain the repo locally and open its root folder
#### To potentially contribute
```shell
git clone https://github.com/pkiage/tool-time-series-decomposition-demo
```
or
```shell
gh repo clone pkiage/tool-time-series-autocorrelation-demo
```
#### Just to deploy locally
Download ZIP
### (optional) Setup virtual environment:
```shell
python -m venv venv
```
### (optional) Activate virtual environment:
#### If using Unix based OS run the following in terminal:
```shell
.\venv\bin\activate
```
#### If using Windows run the following in terminal:
```shell
.\venv\Scripts\activate
```
### Install requirements by running the following in terminal:
#### Required packages
```shell
pip install -r requirements.txt
```
## Build and install local package
```shell
python setup.py build
```
```shell
python setup.py install
```
### Run the streamlit app (app.py) by running the following in terminal (from repository root folder):
```shell
streamlit run src/app.py
```
## Hugging Face Tips
Initial Setup
- [When creating the Spaces Configuration Reference](https://huggingface.co/docs/hub/spaces-config-reference) ensure the [Streamlit Space](https://huggingface.co/docs/hub/spaces-sdks-streamlit) version (sdk_version) specified is supported by HF
```shell
git remote add space https://huggingface.co/spaces/pkiage/time_series_decomposition_demo
git push --force space main
```
- [When syncing with Hugging Face via Github Actions](https://huggingface.co/docs/hub/spaces-github-actions) the [User Access Token](https://huggingface.co/docs/hub/security-tokens) created on Hugging Face (HF) should have write access
## Demo Links
- Hugging Face Space: https://huggingface.co/spaces/pkiage/time_series_decomposition_demo
- Streamlit Community Cloud: https://pkiage-tool-time-series-autocorrelation-demo-app-l0umps.streamlit.app/
|