Skip to content

Commit

Permalink
Sync with HF Space
Browse files Browse the repository at this point in the history
  • Loading branch information
tylertitsworth committed Dec 23, 2023
1 parent 44519db commit 8682041
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/sync-space.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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)
upload_files() {
local file=$1
huggingface-cli upload --repo-type space TotalSundae/dungeons-and-dragons $file $file
}
for file in "$files"; do
upload_files $file
done
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<!--- huggingface spaces metadata
---
colorFrom: red
colorTo: gray
Expand All @@ -7,7 +6,6 @@ pinned: true
sdk: docker
title: Multi Mediawiki RAG
---
--->
# 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.
Expand Down

0 comments on commit 8682041

Please sign in to comment.