Spaces:
Runtime error
Runtime error
File size: 2,645 Bytes
331f4b7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | @echo off
setlocal enabledelayedexpansion
echo.
echo π ReproAgent Quick Start (Windows)
echo ====================================
echo.
:: Check Python
echo Checking Python version...
python --version >nul 2>&1
if %errorlevel% neq 0 (
echo β Python not found! Install Python 3.10+
exit /b 1
)
python --version
echo.
:: Create venv if needed
if not exist "venv" (
echo π¦ Creating virtual environment...
python -m venv venv
echo β
Virtual environment created
echo.
)
:: Activate venv
echo π§ Activating virtual environment...
call venv\Scripts\activate.bat
echo β
Activated
echo.
:: Install dependencies
echo π₯ Installing dependencies...
python -m pip install --upgrade pip --quiet
python -m pip install -r requirements.txt --quiet
echo β
Dependencies installed
echo.
:: Create .env
if not exist ".env" (
echo π Creating .env file...
if exist ".env.example" (
copy .env.example .env >nul
) else (
echo # Add your API keys here > .env
)
echo β οΈ Edit .env to add API keys (optional)
echo.
)
:: Create directories
echo π Setting up directories...
mkdir data\papers\easy 2>nul
mkdir data\papers\medium 2>nul
mkdir data\papers\hard 2>nul
mkdir logs 2>nul
mkdir checkpoints 2>nul
echo β
Directories created
echo.
:: Create sample data
echo π Creating sample papers...
python -c "from reproagent.papers import create_sample_papers; create_sample_papers()" 2>nul
if %errorlevel% equ 0 (
echo β
Sample data ready
) else (
echo β οΈ Sample paper creation skipped
)
echo.
:: Validate
echo π Validating environment...
python validate.py
echo.
:: Menu
echo ==================================================
echo What would you like to do?
echo ==================================================
echo 1^) Launch Gradio demo ^(recommended^)
echo 2^) Run inference
echo 3^) Run baseline comparison
echo 4^) Run validation only
echo 5^) Exit
echo.
set /p choice="Enter choice [1-5]: "
if "%choice%"=="1" (
echo.
echo π¨ Launching Gradio demo...
python server/app.py
) else if "%choice%"=="2" (
echo.
echo π€ Running inference...
python inference.py --difficulty easy --steps 30
) else if "%choice%"=="3" (
echo.
echo π Running baseline comparison...
python baseline/run_baseline.py
) else if "%choice%"=="4" (
echo.
echo β
Validation complete
) else if "%choice%"=="5" (
echo π Goodbye!
exit /b 0
) else (
echo Invalid choice.
exit /b 1
)
|