Spaces:
Runtime error
Runtime error
Download setup.bat from Gopal05/Report-Generatio-System-Radiology: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/spaces/Gopal05/Report-Generatio-System-Radiology/resolve/main/setup.bat
- Command line
-
hf download hf://spaces/Gopal05/Report-Generatio-System-Radiology/setup.bat
-
curl -L -o setup.bat https://huggingface.co/spaces/Gopal05/Report-Generatio-System-Radiology/resolve/main/setup.bat
1.08 kB
| @echo off | |
| echo ============================================================ | |
| echo Radiology AI System — Setup Script | |
| echo Run this ONCE after downloading the project | |
| echo ============================================================ | |
| echo. | |
| echo [1/4] Creating virtual environment... | |
| python -m venv venv | |
| call venv\Scripts\activate | |
| echo. | |
| echo [2/4] Installing PyTorch with CUDA 12.8... | |
| pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128 | |
| echo. | |
| echo [3/4] Installing all dependencies... | |
| pip install -r requirements.txt | |
| echo. | |
| echo [4/4] Verifying GPU... | |
| python -c "import torch; print('CUDA:', torch.cuda.is_available()); print('GPU:', torch.cuda.get_device_name(0) if torch.cuda.is_available() else 'None')" | |
| echo. | |
| echo ============================================================ | |
| echo Setup complete! | |
| echo Next steps: | |
| echo 1. Fine-tune: run_training.bat | |
| echo 2. Start app: run_backend.bat (Terminal 1) | |
| echo run_frontend.bat (Terminal 2) | |
| echo ============================================================ | |
| pause | |