diff --git a/.github/workflows/sync-space.yaml b/.github/workflows/sync-space.yaml new file mode 100644 index 0000000..89aa853 --- /dev/null +++ b/.github/workflows/sync-space.yaml @@ -0,0 +1,26 @@ +name: Sync Space +on: + push: + branches: + - main + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Login with Huggingface CLI + run: | + pip install -U "huggingface_hub[cli]" hf-transfer + git config --global credential.helper store + huggingface-cli login --token ${{ secrets.HF_TOKEN }} + - name: Upload Files + env: + HF_HUB_ENABLE_HF_TRANSFER: 1 + run: | + files=$(git diff --name-only HEAD HEAD~1) + for file in "$files"; do + huggingface-cli upload --repo-type space TotalSundae/dungeons-and-dragons $file + done diff --git a/README.md b/README.md index 1a903aa..915ef31 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ - # Multi Mediawiki RAG Chatbot [Chatbots](https://www.forbes.com/advisor/business/software/what-is-a-chatbot/) are very popular right now. Most openly accessible information is stored in some kind of a [Mediawiki](https://en.wikipedia.org/wiki/MediaWiki). Creating a [RAG](https://research.ibm.com/blog/retrieval-augmented-generation-RAG) Chatbot is becoming a very powerful alternative to traditional data gathering. This project is designed to create a basic format for creating your own chatbot to run locally on linux.