| #!/bin/bash |
|
|
| |
|
|
| echo "Preparing FFG Mask Explorer for HuggingFace Space deployment..." |
|
|
| |
| mkdir -p ffg_experiment_suite/src |
| mkdir -p ffg_experiment_suite/scripts |
|
|
| |
| echo "Copying source modules..." |
| cp ../ffg_experiment_suite/src/__init__.py ffg_experiment_suite/src/ |
| cp ../ffg_experiment_suite/src/models.py ffg_experiment_suite/src/ |
| cp ../ffg_experiment_suite/src/grafting.py ffg_experiment_suite/src/ |
| cp ../ffg_experiment_suite/src/analysis.py ffg_experiment_suite/src/ |
|
|
| echo "Files copied successfully!" |
|
|
| |
| cat > .gitignore << EOF |
| __pycache__/ |
| *.py[cod] |
| *$py.class |
| *.so |
| .Python |
| env/ |
| venv/ |
| ENV/ |
| .venv |
| *.log |
| .DS_Store |
| .idea/ |
| .vscode/ |
| EOF |
|
|
| echo "Preparation complete! Next steps:" |
| echo "1. Create a new HuggingFace Space: https://huggingface.co/new-space" |
| echo "2. Choose 'Gradio' as the SDK" |
| echo "3. Select 'a10g-small' as the hardware (GPU required)" |
| echo "4. Clone the space repository locally" |
| echo "5. Copy all files from this directory to the cloned space" |
| echo "6. Push to HuggingFace" |
| echo "" |
| echo "Example commands:" |
| echo " git clone https://huggingface.co/spaces/YOUR_USERNAME/ffg-mask-explorer" |
| echo " cp -r . ../ffg-mask-explorer/" |
| echo " cd ../ffg-mask-explorer" |
| echo " git add ." |
| echo " git commit -m 'Initial commit'" |
| echo " git push" |