-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_searcher.command
More file actions
executable file
·40 lines (33 loc) · 1.03 KB
/
start_searcher.command
File metadata and controls
executable file
·40 lines (33 loc) · 1.03 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
#!/bin/bash
# Paper Searcher Launcher (Mac/Linux)
# スクリプトのあるディレクトリに移動
cd "$(dirname "$0")"
echo "========================================"
echo " Paper Searcher Starting..."
echo "========================================"
echo ""
# Check and activate virtual environment
if [ -d "paper_manager_env" ]; then
echo "Activating virtual environment..."
source paper_manager_env/bin/activate
echo "Virtual environment activated: $VIRTUAL_ENV"
else
echo "Virtual environment not found. Using system Python."
fi
# Check Python version
echo "Using Python: $(which python3)"
python3 --version
# Check if Streamlit is installed
python3 -c "import streamlit" 2>/dev/null
if [ $? -ne 0 ]; then
echo "Error: Streamlit is not installed."
echo "Please run: pip install -r requirements.txt"
echo ""
exit 1
fi
# Start Paper Searcher
echo "Starting Paper Searcher..."
echo "Browser will open automatically at http://localhost:8503"
echo "Press Ctrl+C to exit."
echo ""
python3 start_searcher.py