-
Notifications
You must be signed in to change notification settings - Fork 6
Feature/huggingface space continuous deployment #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| __pycache__ | ||
| *.pyc | ||
| *.pyo | ||
| *.pyd | ||
| .Python | ||
| env/ | ||
| venv/ | ||
| .env | ||
| .venv | ||
| env.bak/ | ||
| venv.bak/ | ||
| .git | ||
| .gitignore | ||
| .github |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| name: Sync to Hugging Face hub | ||
| on: | ||
| push: | ||
| branches: [main] | ||
|
|
||
| # to run this workflow manually from the Actions tab | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| sync-to-hub: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| lfs: true | ||
| - name: Push to hub | ||
| env: | ||
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
| run: | | ||
| git push --force https://oauth2:$HF_TOKEN@huggingface.co/spaces/twinkle-ai/tw-eval-analyzer main |
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,21 @@ | ||||||||||||
| FROM python:3.13.5-slim | ||||||||||||
|
|
||||||||||||
| WORKDIR /app | ||||||||||||
|
|
||||||||||||
| RUN apt-get update && apt-get install -y \ | ||||||||||||
| build-essential \ | ||||||||||||
| curl \ | ||||||||||||
| git \ | ||||||||||||
| && rm -rf /var/lib/apt/lists/* | ||||||||||||
|
|
||||||||||||
| COPY requirements.txt ./ | ||||||||||||
| COPY . . | ||||||||||||
|
|
||||||||||||
| RUN pip3 install -r requirements.txt | ||||||||||||
|
|
||||||||||||
|
Comment on lines
+12
to
+15
|
||||||||||||
| COPY . . | |
| RUN pip3 install -r requirements.txt | |
| RUN pip3 install -r requirements.txt | |
| COPY . . |
Uh oh!
There was an error while loading. Please reload this page.