Hansimov commited on
Commit
d0a4f07
β€’
1 Parent(s): eb0ce75

:gem: [Feature] Sync to Hugginface space, and run in docker

Browse files
.github/workflows/sync_to_hf_space.yml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Sync to Hugging Face hub
2
+ on:
3
+ push:
4
+ branches: [main]
5
+ workflow_dispatch:
6
+
7
+ jobs:
8
+ sync-to-hub:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ with:
13
+ fetch-depth: 0
14
+ lfs: true
15
+ - name: Push to hub
16
+ env:
17
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
18
+ run: git push -f https://Hansimov:$HF_TOKEN@huggingface.co/spaces/Hansimov/web-search-api main
Dockerfile ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+ WORKDIR $HOME/app
3
+ COPY . .
4
+ RUN pip install -r requirements.txt
5
+ VOLUME /data
6
+ EXPOSE 21111
7
+ CMD ["python", "-m", "apis.search_api"]
README.md CHANGED
@@ -1,2 +1,11 @@
 
 
 
 
 
 
 
 
 
1
  # Web-Search-API
2
  A lightweight API for web search to power LLM.
 
1
+ ---
2
+ title: Web Search API
3
+ emoji: πŸ”
4
+ colorFrom: gray
5
+ colorTo: gray
6
+ sdk: docker
7
+ app_port: 21111
8
+ ---
9
+
10
  # Web-Search-API
11
  A lightweight API for web search to power LLM.