File size: 508 Bytes
4b810e5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/bin/bash

echo "Script started."

# Run server
echo "Starting server..."
python server.py --duration 10 &
echo "Server started."

# Sleep
echo "Waiting for the server to startup..."
sleep 10

# Run client
echo "Starting client..."
python client.py --server_url http://localhost:8000 --prompts "Lofi Music for Coding" --output_file output.wav 
echo "Client finished." 


# Kill server
echo "Killing server..."
kill $(ps aux | grep 'server.py' | awk '{print $2}') 


# Done
sleep 5
echo "Script finished."