Spaces:
Paused
Paused
| @echo off | |
| echo π§Ή Cleaning repository for Hugging Face deployment... | |
| echo. | |
| echo π Removing binary files and vector stores... | |
| REM Remove vector store directory | |
| if exist "vector_store" ( | |
| echo Removing vector_store directory... | |
| rmdir /s /q "vector_store" | |
| echo β vector_store removed | |
| ) else ( | |
| echo βΉοΈ vector_store directory not found | |
| ) | |
| REM Remove database files | |
| for %%f in (*.db *.sqlite *.sqlite3) do ( | |
| if exist "%%f" ( | |
| echo Removing %%f... | |
| del "%%f" | |
| echo β %%f removed | |
| ) | |
| ) | |
| REM Remove FAISS files | |
| for %%f in (*.faiss *.index *.bin) do ( | |
| if exist "%%f" ( | |
| echo Removing %%f... | |
| del "%%f" | |
| echo β %%f removed | |
| ) | |
| ) | |
| REM Remove log files | |
| for %%f in (*.log) do ( | |
| if exist "%%f" ( | |
| echo Removing %%f... | |
| del "%%f" | |
| echo β %%f removed | |
| ) | |
| ) | |
| echo. | |
| echo π Updating git... | |
| REM Remove tracked files that should be ignored | |
| git rm -r --cached vector_store/ 2>nul | |
| git rm --cached *.db 2>nul | |
| git rm --cached *.sqlite 2>nul | |
| git rm --cached *.sqlite3 2>nul | |
| git rm --cached *.faiss 2>nul | |
| git rm --cached *.log 2>nul | |
| echo. | |
| echo π Committing changes... | |
| git add . | |
| git commit -m "Clean repository for Hugging Face deployment - remove binary files" | |
| echo. | |
| echo β Repository cleaned! You can now push to Hugging Face: | |
| echo. | |
| echo git push space develop | |
| echo. | |
| echo Or create a new branch: | |
| echo git checkout -b main | |
| echo git push space main | |
| echo. | |
| pause |