Spaces:
				
			
			
	
			
			
		Running
		
			on 
			
			Zero
	
	
	
			
			
	
	
	
	
		
		
		Running
		
			on 
			
			Zero
	Upload folder using huggingface_hub
Browse files- .github/workflows/update_space.yml +28 -0
 - .gitignore +13 -0
 - .python-version +1 -0
 - README.md +3 -9
 - hello.py +6 -0
 - pyproject.toml +13 -0
 - uv.lock +0 -0
 
    	
        .github/workflows/update_space.yml
    ADDED
    
    | 
         @@ -0,0 +1,28 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            name: Run Python script
         
     | 
| 2 | 
         
            +
             
     | 
| 3 | 
         
            +
            on:
         
     | 
| 4 | 
         
            +
              push:
         
     | 
| 5 | 
         
            +
                branches:
         
     | 
| 6 | 
         
            +
                  - main
         
     | 
| 7 | 
         
            +
             
     | 
| 8 | 
         
            +
            jobs:
         
     | 
| 9 | 
         
            +
              build:
         
     | 
| 10 | 
         
            +
                runs-on: ubuntu-latest
         
     | 
| 11 | 
         
            +
             
     | 
| 12 | 
         
            +
                steps:
         
     | 
| 13 | 
         
            +
                - name: Checkout
         
     | 
| 14 | 
         
            +
                  uses: actions/checkout@v2
         
     | 
| 15 | 
         
            +
             
     | 
| 16 | 
         
            +
                - name: Set up Python
         
     | 
| 17 | 
         
            +
                  uses: actions/setup-python@v2
         
     | 
| 18 | 
         
            +
                  with:
         
     | 
| 19 | 
         
            +
                    python-version: '3.9'
         
     | 
| 20 | 
         
            +
             
     | 
| 21 | 
         
            +
                - name: Install Gradio
         
     | 
| 22 | 
         
            +
                  run: python -m pip install gradio
         
     | 
| 23 | 
         
            +
             
     | 
| 24 | 
         
            +
                - name: Log in to Hugging Face
         
     | 
| 25 | 
         
            +
                  run: python -c 'import huggingface_hub; huggingface_hub.login(token="${{ secrets.hf_token }}")'
         
     | 
| 26 | 
         
            +
             
     | 
| 27 | 
         
            +
                - name: Deploy to Spaces
         
     | 
| 28 | 
         
            +
                  run: gradio deploy
         
     | 
    	
        .gitignore
    ADDED
    
    | 
         @@ -0,0 +1,13 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            # Python-generated files
         
     | 
| 2 | 
         
            +
            __pycache__/
         
     | 
| 3 | 
         
            +
            *.py[oc]
         
     | 
| 4 | 
         
            +
            build/
         
     | 
| 5 | 
         
            +
            dist/
         
     | 
| 6 | 
         
            +
            wheels/
         
     | 
| 7 | 
         
            +
            *.egg-info
         
     | 
| 8 | 
         
            +
             
     | 
| 9 | 
         
            +
            # Virtual environments
         
     | 
| 10 | 
         
            +
            .venv
         
     | 
| 11 | 
         
            +
             
     | 
| 12 | 
         
            +
            .mypy_cache
         
     | 
| 13 | 
         
            +
            .gradio/
         
     | 
    	
        .python-version
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            3.12
         
     | 
    	
        README.md
    CHANGED
    
    | 
         @@ -1,12 +1,6 @@ 
     | 
|
| 1 | 
         
             
            ---
         
     | 
| 2 | 
         
            -
            title:  
     | 
| 3 | 
         
            -
            emoji: 👀
         
     | 
| 4 | 
         
            -
            colorFrom: green
         
     | 
| 5 | 
         
            -
            colorTo: indigo
         
     | 
| 6 | 
         
            -
            sdk: gradio
         
     | 
| 7 | 
         
            -
            sdk_version: 5.38.2
         
     | 
| 8 | 
         
             
            app_file: app.py
         
     | 
| 9 | 
         
            -
             
     | 
| 
         | 
|
| 10 | 
         
             
            ---
         
     | 
| 11 | 
         
            -
             
     | 
| 12 | 
         
            -
            Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
         
     | 
| 
         | 
|
| 1 | 
         
             
            ---
         
     | 
| 2 | 
         
            +
            title: sidon_demo_beta
         
     | 
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 3 | 
         
             
            app_file: app.py
         
     | 
| 4 | 
         
            +
            sdk: gradio
         
     | 
| 5 | 
         
            +
            sdk_version: 5.3.0
         
     | 
| 6 | 
         
             
            ---
         
     | 
| 
         | 
|
| 
         | 
    	
        hello.py
    ADDED
    
    | 
         @@ -0,0 +1,6 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            def main():
         
     | 
| 2 | 
         
            +
                print("Hello from sidon-demo!")
         
     | 
| 3 | 
         
            +
             
     | 
| 4 | 
         
            +
             
     | 
| 5 | 
         
            +
            if __name__ == "__main__":
         
     | 
| 6 | 
         
            +
                main()
         
     | 
    	
        pyproject.toml
    ADDED
    
    | 
         @@ -0,0 +1,13 @@ 
     | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
|
| 
         | 
| 
         | 
|
| 1 | 
         
            +
            [project]
         
     | 
| 2 | 
         
            +
            name = "sidon-demo"
         
     | 
| 3 | 
         
            +
            version = "0.1.0"
         
     | 
| 4 | 
         
            +
            description = "Add your description here"
         
     | 
| 5 | 
         
            +
            readme = "README.md"
         
     | 
| 6 | 
         
            +
            requires-python = ">=3.12"
         
     | 
| 7 | 
         
            +
            dependencies = [
         
     | 
| 8 | 
         
            +
                "gradio>=5.3.0",
         
     | 
| 9 | 
         
            +
                "pydantic==2.10.6",
         
     | 
| 10 | 
         
            +
                "torch>=2.7.1",
         
     | 
| 11 | 
         
            +
                "torchaudio>=2.7.1",
         
     | 
| 12 | 
         
            +
                "transformers>=4.53.3",
         
     | 
| 13 | 
         
            +
            ]
         
     | 
    	
        uv.lock
    ADDED
    
    | 
         The diff for this file is too large to render. 
		See raw diff 
     | 
| 
         |