Skip to content

Commit

Permalink
Merge pull request #1 from EdgarOrtegaRamirez/sync-hf-space
Browse files Browse the repository at this point in the history
Add GitHub Actions workflow to sync with HF Space
  • Loading branch information
EdgarOrtegaRamirez authored May 31, 2024
2 parents 8c5e816 + fe17e59 commit d8172af
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/hugging-face-sync.yml
Original file line number Diff line number Diff line change
@@ -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:[email protected]/spaces/edgarortega/gradio-chat main
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
# Gradio Chat

---

title: Gradio Chat
emoji: 💬
colorFrom: yellow
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

<https://huggingface.co/spaces/edgarortega/gradio-chat>

## Setup

Install asdf
Expand Down

0 comments on commit d8172af

Please sign in to comment.