Spaces:
Sleeping
Sleeping
Commit
·
6c4de46
1
Parent(s):
474976b
adding github actions
Browse files- .github/workflows/hugginface.yaml +20 -0
- Dockerfile +14 -0
- README.md +1 -1
- requirements.txt +2 -1
.github/workflows/hugginface.yaml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Sync to Hugging Face hub
|
2 |
+
on:
|
3 |
+
push:
|
4 |
+
branches: [main]
|
5 |
+
|
6 |
+
# to run this workflow manually from the Actions tab
|
7 |
+
workflow_dispatch:
|
8 |
+
|
9 |
+
jobs:
|
10 |
+
sync-to-hub:
|
11 |
+
runs-on: ubuntu-latest
|
12 |
+
steps:
|
13 |
+
- uses: actions/checkout@v3
|
14 |
+
with:
|
15 |
+
fetch-depth: 0
|
16 |
+
lfs: true
|
17 |
+
- name: Push to hub
|
18 |
+
env:
|
19 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
20 |
+
run: git push https://HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/HF_USERNAME/SPACE_NAME main
|
Dockerfile
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.11-slim
|
2 |
+
|
3 |
+
WORKDIR /app
|
4 |
+
COPY requirements.txt requirements.txt
|
5 |
+
COPY src/ src/
|
6 |
+
|
7 |
+
RUN pip install uv
|
8 |
+
RUN uv pip install -r requirements.txt
|
9 |
+
|
10 |
+
EXPOSE 8501
|
11 |
+
|
12 |
+
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
13 |
+
|
14 |
+
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
README.md
CHANGED
@@ -6,7 +6,7 @@ Este repo contiene el código y los notebooks necesarios para el demo presentado
|
|
6 |
|
7 |
El modelo implementado [TimesFM](https://research.google/blog/a-decoder-only-foundation-model-for-time-series-forecasting/) fue desarrollado en una arquitectura tipo decoder-only similar a grandes modelos de lenguaje (LLMs).
|
8 |
|
9 |
-
Este repositorio contiene lo necesario, para revisar la aplicación montanda en HuggingFace Spaces
|
10 |
|
11 |
|
12 |
## ☕ Support the Project
|
|
|
6 |
|
7 |
El modelo implementado [TimesFM](https://research.google/blog/a-decoder-only-foundation-model-for-time-series-forecasting/) fue desarrollado en una arquitectura tipo decoder-only similar a grandes modelos de lenguaje (LLMs).
|
8 |
|
9 |
+
Este repositorio contiene lo necesario, para revisar la aplicación montanda en [HuggingFace Spaces]().
|
10 |
|
11 |
|
12 |
## ☕ Support the Project
|
requirements.txt
CHANGED
@@ -4,4 +4,5 @@ yfinance==0.2.62
|
|
4 |
timesfm==1.2.9
|
5 |
jax==0.6.1
|
6 |
torch==2.7.1
|
7 |
-
plotly==6.1.2
|
|
|
|
4 |
timesfm==1.2.9
|
5 |
jax==0.6.1
|
6 |
torch==2.7.1
|
7 |
+
plotly==6.1.2
|
8 |
+
streamlit==1.45.1
|