Marti Umbert
commited on
Commit
·
39e8fd5
1
Parent(s):
20e4167
scripts/: some useful bash scripts to launch the server and do port forwarding
Browse files- scripts/launch_server.sh +14 -0
- scripts/port_forwarding.sh +9 -0
scripts/launch_server.sh
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
MODEL=projecte-aina/faster-whisper-large-v3-ca-3catparla
|
| 5 |
+
PORT=8000
|
| 6 |
+
MODEL_CASCADED_TRANSLATION=projecte-aina/aina-translator-ca-es
|
| 7 |
+
LANGUAGE=ca
|
| 8 |
+
|
| 9 |
+
cmd="whisperlivekit-server --model $MODEL \
|
| 10 |
+
--port $PORT \
|
| 11 |
+
--model_cascaded_translation $MODEL_CASCADED_TRANSLATION \
|
| 12 |
+
--language $LANGUAGE"
|
| 13 |
+
echo $cmd
|
| 14 |
+
eval $cmd
|
scripts/port_forwarding.sh
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
IP=84.88.51.151
|
| 4 |
+
PORT=8000
|
| 5 |
+
USER=marti
|
| 6 |
+
|
| 7 |
+
cmd="ssh -L $PORT:localhost:$PORT -N -o GatewayPorts=yes $USER@$IP"
|
| 8 |
+
echo $cmd
|
| 9 |
+
eval $cmd
|