File size: 610 Bytes
2197ab7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

# Add the project root to PYTHONPATH
export PYTHONPATH="/home/jelle/Tools/pythagora-core/workspace/fabric-to-espanso:$PYTHONPATH"

# Run the streamlit app
/home/jelle/Tools/pythagora-core/workspace/fabric-to-espanso/.venv/bin/streamlit run ~/Tools/pythagora-core/workspace/fabric-to-espanso/src/search_qdrant/streamlit_app.py > nohup.out 2>&1 &
PID=$!

until grep -q "You can now view your Streamlit app" nohup.out
do
	if ! kill -0 $PID 2>/dev/null; then
		echo "Streamlit failed to start"
		exit 1
	fi
	sleep 1
done

cat nohup.out | grep -A 3 "You can now view your Streamlit app"

sleep 3

exit