-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (19 loc) · 739 Bytes
/
Makefile
File metadata and controls
25 lines (19 loc) · 739 Bytes
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
# Configurable environment name for conda
ENV_NAME ?= llm-chat
# Use conda run to ensure commands execute inside the env
CONDA_RUN = conda run -n $(ENV_NAME)
.PHONY: env chat deps clean
env:
@echo "Creating/Updating conda env '$(ENV_NAME)' from environment.yml"
@conda env update -n $(ENV_NAME) -f environment.yml --prune || \
conda env create -n $(ENV_NAME) -f environment.yml
@echo "Done. Activate with: conda activate $(ENV_NAME)"
deps:
@echo "Installing pip dependencies inside '$(ENV_NAME)'"
@$(CONDA_RUN) pip install -r requirements.txt
chat: env deps
@echo "Launching Streamlit in conda env '$(ENV_NAME)'"
@$(CONDA_RUN) streamlit run app/streamlit_app.py
clean:
@echo "Cleaning Streamlit cache"
@rm -rf .streamlit/