Spaces:
Sleeping
Sleeping
Bachstelze commited on
Commit ·
d1874c5
1
Parent(s): 265c73d
set up GitHub Actions and add a simple gradio app
Browse filesFiles changed (2)
- .github/workflows/push_to_hf_space.ymlAdded+19
- app.pyAdded+7
12345678910111213141516171819name: Sync with Hugging Face Hub
on: push: branches: - main
jobs: build: runs-on: ubuntu-latest steps: - name: Sync with Hugging Face uses: nateraw/huggingface-sync-action@v0.0.4 with: github_repo_id: othmanreem/Data-intensive-systems huggingface_repo_id: lnuDataProject/A1 repo_type: space space_sdk: gradio hf_token: ${{ secrets.HF_TOKEN }}1234567import gradio as gr
def greet(name): return "Hello " + name + "!!"
iface = gr.Interface(fn=greet, inputs="text", outputs="text")iface.launch().github/workflows/push_to_hf_space.ymlAdded+19
app.pyAdded+7