-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_treellm.sh
More file actions
64 lines (55 loc) Β· 1.54 KB
/
run_treellm.sh
File metadata and controls
64 lines (55 loc) Β· 1.54 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
#!/bin/bash
# run_treellm.sh - TreeLLM μ€ν μ€ν¬λ¦½νΈ
echo "π³ TreeLLM μμ€ν
μμ"
echo "========================"
# νκ²½ λ³μ νμΈ
if [ -f .env ]; then
echo "β
νκ²½ λ³μ νμΌ λ°κ²¬"
source .env
else
echo "β οΈ .env νμΌμ΄ μμ΅λλ€. .env.exampleμ μ°Έκ³ νμ¬ μμ±νμΈμ."
fi
# Python κ²½λ‘ μ€μ
export PYTHONPATH="${PYTHONPATH}:$(pwd)/src"
# μ€ν μ΅μ
μ ν
echo ""
echo "μ€νν λͺ¨λλ₯Ό μ ννμΈμ:"
echo "1) μΉ μΈν°νμ΄μ€ (Streamlit)"
echo "2) μμ μ½λ μ€ν"
echo "3) ν
μ€νΈ μ€ν"
echo "4) 컀μ€ν
λΆμ"
read -p "μ ν (1-4): " choice
case $choice in
1)
echo "π μΉ μΈν°νμ΄μ€ μμ..."
streamlit run web_interface.py
;;
2)
echo "π μμ μ½λ μ€ν..."
python example_usage.py
;;
3)
echo "π§ͺ ν
μ€νΈ μ€ν..."
python tests/test_agents.py
;;
4)
echo "π§ 컀μ€ν
λΆμ λͺ¨λ..."
python -c "
from src.core import PaperSections
from treellm_system import TreeLLMSystem
print('컀μ€ν
λΆμμ μν Python μΈν°ν리ν°κ° μμλ©λλ€.')
print('μ¬μ© μμ:')
print('paper = PaperSections(introduction=\"λ³Έ μ°κ΅¬λ...\", method=\"μ μνλ λ°©λ²μ...\")')
print('treellm = TreeLLMSystem()')
print('results = treellm.analyze_paper(paper_sections=paper)')
print('')
"
python
;;
*)
echo "β μλͺ»λ μ νμ
λλ€."
exit 1
;;
esac
echo ""
echo "π TreeLLM μ€ν μλ£!"