SimpleChat:sh: Add simple shell script to run python3 http.server
So one needs to run the llm server locally then run this script and access it using a local browser
This commit is contained in:
parent
ebe330d098
commit
29d2d22c02
1 changed files with 9 additions and 0 deletions
9
examples/server/public_simplechat/simplechat.sh
Executable file
9
examples/server/public_simplechat/simplechat.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
|
||||
PORT=$1
|
||||
|
||||
if [ "$PORT" == "" ]; then
|
||||
PORT=9000
|
||||
fi
|
||||
|
||||
echo "Open http://127.0.0.1:$PORT/simplechat.html in your local browser"
|
||||
python3 -m http.server $PORT
|
Loading…
Add table
Add a link
Reference in a new issue