comparison demo/workspace/semantic_analysis.sh @ 6:7abb4f6b3a91

changed chrome to run as non-root, changed libreoffice-calc to libreoffice
author Emmanouil Theofanis Chourdakis <e.t.chourdakis@qmul.ac.uk>
date Sat, 01 Dec 2018 12:57:26 +0000
parents d0ac6786c3b9
children c7877910daab
comparison
equal deleted inserted replaced
5:d0ac6786c3b9 6:7abb4f6b3a91
27 python3 standalone.py & 27 python3 standalone.py &
28 PID=$! 28 PID=$!
29 29
30 echo "Please visit http://0.0.0.0:8001/index.xhtml#/workspace/story_processed" 30 echo "Please visit http://0.0.0.0:8001/index.xhtml#/workspace/story_processed"
31 echo "login with user:au1/pass:au1 and make your changes, and then press enter here" 31 echo "login with user:au1/pass:au1 and make your changes, and then press enter here"
32 google-chrome --no-sandbox 'http://0.0.0.0:8001/index.xhtml#/workspace/story_processed' 32 su apps -c "google-chrome 'http://0.0.0.0:8001/index.xhtml#/workspace/story_processed'"
33 cd - 33 cd -
34 read 34 read
35 kill $PID 35 kill $PID
36 36
37 echo "Copying files over to current directory" 37 echo "Copying files over to current directory"
41 41
42 cd .. 42 cd ..
43 python3 annotation2script.py workspace/story_processed.ann workspace/story_quotes.json 43 python3 annotation2script.py workspace/story_processed.ann workspace/story_quotes.json
44 echo "Please edit the transcript .xls file if necessary. If you want to replace the voices, just record your voice and store them" 44 echo "Please edit the transcript .xls file if necessary. If you want to replace the voices, just record your voice and store them"
45 echo "using the filenames under column 'filename' in transcript.xls. Do the same for sfx.xls. Press enter here when you're done" 45 echo "using the filenames under column 'filename' in transcript.xls. Do the same for sfx.xls. Press enter here when you're done"
46 libreoffice-calc workspace/transcript.xls 46 libreoffice workspace/transcript.xls
47 libreoffice-calc workspace/sfx.xls 47 libreoffice workspace/sfx.xls
48 cd - 48 cd -
49 read 49 read
50 50
51 echo "Generated script is at story_processed_script.txt" 51 echo "Generated script is at story_processed_script.txt"
52 cat story_processed_script.txt 52 cat story_processed_script.txt