diff --git a/.github/workflows/hugging-face-sync.yml b/.github/workflows/hugging-face-sync.yml new file mode 100644 index 0000000..25eae73 --- /dev/null +++ b/.github/workflows/hugging-face-sync.yml @@ -0,0 +1,20 @@ +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 + # with: + # fetch-depth: 0 + # lfs: true + - name: Push to hub + env: + HF_TOKEN: ${{ secrets.HF_TOKEN }} + run: git push https://edgarortega:$HF_TOKEN@huggingface.co/spaces/edgarortega/gradio-chat main diff --git a/README.md b/README.md index 1c7b3b2..ddfe02f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ +# Gradio Chat + --- + title: Gradio Chat emoji: 💬 colorFrom: yellow @@ -6,12 +9,15 @@ colorTo: purple sdk: gradio app_file: app.py pinned: false ---- -# Gradio Chat +--- An example chatbot using [Gradio](https://gradio.app), [`huggingface_hub`](https://huggingface.co/docs/huggingface_hub/v0.22.2/en/index), and the [Hugging Face Inference API](https://huggingface.co/docs/api-inference/index). +## Demo + + + ## Setup Install asdf