Hansimov commited on
Commit
75d0f7f
1 Parent(s): 2156e95

:gem: [Feature] Enable actions: sync to hf space

Browse files
Files changed (2) hide show
  1. .github/workflows/sync_hf_space.yml +19 -0
  2. Dockerfile +8 -0
.github/workflows/sync_hf_space.yml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face hub
2
+ on:
3
+ push:
4
+ paths:
5
+ - "configs/info.json"
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ sync-to-hub:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v3
13
+ with:
14
+ fetch-depth: 0
15
+ lfs: true
16
+ - name: Push to hub
17
+ env:
18
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
19
+ run: git push -f https://Hansimov:$HF_TOKEN@huggingface.co/spaces/Hansimov/embed-api main
Dockerfile ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+ WORKDIR $HOME/app
3
+ COPY requirements.txt $HOME/app
4
+ RUN mkdir /.cache && chmod 777 /.cache
5
+ RUN pip install -r requirements.txt
6
+ COPY . $HOME/app
7
+ EXPOSE 16666
8
+ CMD ["python", "-m", "app"]