-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathMakefile
More file actions
102 lines (74 loc) · 2.29 KB
/
Makefile
File metadata and controls
102 lines (74 loc) · 2.29 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
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
# Define the two virtual environments
VENV = .venv
BROWSER_VENV = .venv-browser
PYTHON = $(VENV)/bin/python3
BROWSER_PYTHON = $(BROWSER_VENV)/bin/python3
PIP = $(VENV)/bin/pip3
BROWSER_PIP = $(BROWSER_VENV)/bin/pip3
STREAMLIT = $(VENV)/bin/streamlit
BROWSER_STREAMLIT = $(BROWSER_VENV)/bin/streamlit
GRADIO = $(VENV)/bin/gradio
# Basic venv without browser dependencies
$(VENV)/bin/activate: requirements.txt
python3 -m venv $(VENV)
$(PIP) install -r requirements.txt
# Browser-enabled venv with playwright
$(BROWSER_VENV)/bin/activate: requirements.txt
python3 -m venv $(BROWSER_VENV)
$(BROWSER_PIP) install -r requirements.txt
$(BROWSER_PIP) install playwright
$(BROWSER_PYTHON) -m playwright install
chatopenai: $(VENV)/bin/activate
$(STREAMLIT) run chatopenai.py
coldmail: $(VENV)/bin/activate
$(STREAMLIT) run coldmail.py
chat: $(VENV)/bin/activate
$(STREAMLIT) run chat.py
chatpdf: $(VENV)/bin/activate
$(STREAMLIT) run chatpdf.py
longimg: $(VENV)/bin/activate
$(STREAMLIT) run longimg.py
chatpdfemb: $(VENV)/bin/activate
$(STREAMLIT) run chatpdfemb.py
gemini: $(VENV)/bin/activate
$(STREAMLIT) run gemini.py
chatgradio: $(VENV)/bin/activate
$(GRADIO) chatgradio.py
docv: $(VENV)/bin/activate
$(STREAMLIT) run docv.py
search: $(VENV)/bin/activate
$(STREAMLIT) run chatsearch.py
reasoning: $(VENV)/bin/activate
$(STREAMLIT) run reasoning.py
discussion: $(VENV)/bin/activate
$(STREAMLIT) run discussion.py --server.port 9093
llama: $(VENV)/bin/activate
$(STREAMLIT) run llama.py
voice: $(VENV)/bin/activate
$(STREAMLIT) run voice.py
hw: $(VENV)/bin/activate
$(STREAMLIT) run hw.py
util: $(VENV)/bin/activate
$(PYTHON) solar_util.py
podcast: $(VENV)/bin/activate
$(STREAMLIT) run podcast.py
biz_help: $(VENV)/bin/activate
$(STREAMLIT) run biz_help.py
info_fill: $(BROWSER_VENV)/bin/activate
$(BROWSER_STREAMLIT) run info_fill.py
jaisearch: $(BROWSER_VENV)/bin/activate
$(STREAMLIT) run jaisearch.py
jaichat: $(BROWSER_VENV)/bin/activate
$(STREAMLIT) run jaichat.py
translate: $(BROWSER_VENV)/bin/activate
$(STREAMLIT) run translate.py
solar-r: $(BROWSER_VENV)/bin/activate
$(STREAMLIT) run solar-r.py
fc: $(BROWSER_VENV)/bin/activate
$(STREAMLIT) run fc.py
namecard: $(VENV)/bin/activate
$(STREAMLIT) run namecard.py
clean:
rm -rf __pycache__
rm -rf $(VENV)
rm -rf $(BROWSER_VENV)