-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.bat
More file actions
44 lines (37 loc) · 1.67 KB
/
setup.bat
File metadata and controls
44 lines (37 loc) · 1.67 KB
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
@echo off
REM This script automates the setup process for the Biological Pathway Mapping project.
echo --- Biological Pathway Mapping Setup ---
REM Step 1: Create a Python virtual environment
echo.
echo [1/3] Creating Python virtual environment in '.\.venv'...
python -m venv .venv
if %errorlevel% neq 0 (
echo Error: Failed to create virtual environment. Please ensure Python 3.9+ is installed.
exit /b %errorlevel%
)
REM Step 2: Activate the virtual environment and install dependencies
echo.
echo [2/3] Activating virtual environment and installing dependencies from requirements.txt...
REM Activate for the current script session
call .venv\Scripts\activate.bat
REM Install packages
pip install -r requirements.txt
if %errorlevel% neq 0 (
echo Error: Failed to install dependencies. Please check requirements.txt and your network connection.
exit /b %errorlevel%
)
REM Step 3: Remind the user to install Ollama and pull the model
echo.
echo [3/3] Final steps: Please install Ollama and pull the required model.
echo --------------------------------------------------------------------
echo 1. Download and install Ollama from https://ollama.ai/
echo 2. After installation, run the following command in your terminal:
echo ollama pull gemma3:1b
echo (Optionally, for more powerful analysis, you can pull 'gpt:oss120b-cloud' if your system has sufficient resources.)
echo 3. Once the model is downloaded, you can run the application with:
echo .venv\Scripts\activate.bat
echo streamlit run streamlit_app.py
echo --------------------------------------------------------------------
echo.
echo Setup complete! Please follow the final steps above to run the application.
pause