Harisri commited on
Commit
c3153bb
·
verified ·
1 Parent(s): 9fe9a95

Update run.sh

Browse files
Files changed (1) hide show
  1. run.sh +7 -1
run.sh CHANGED
@@ -3,7 +3,13 @@
3
  # Path to the lang_list.txt file
4
  LANG_LIST_PATH="/home/user/.AI4Bharat_Xlit_Models/en2indic/lang_list.txt"
5
 
6
- echo -e "en\nas\nbn\nbrx\ngom\ngu\nhi\nkn\nks\nmai\nml\nmni\nmr\nne\nor\npa\nsa\nsd\nsi\nta\nte\nur" > $LANG_LIST_PATH
 
 
 
 
 
 
7
 
8
 
9
  # Hardcode the Conda environment name
 
3
  # Path to the lang_list.txt file
4
  LANG_LIST_PATH="/home/user/.AI4Bharat_Xlit_Models/en2indic/lang_list.txt"
5
 
6
+ # Create the directory if it doesn't exist
7
+ mkdir -p /home/user/.AI4Bharat_Xlit_Models/en2indic/
8
+
9
+ # Check if lang_list.txt already exists, if not, create it with the necessary languages
10
+ if [ ! -f "$LANG_LIST_PATH" ]; then
11
+ echo -e "en\nas\nbn\nbrx\ngom\ngu\nhi\nkn\nks\nmai\nml\nmni\nmr\nne\nor\npa\nsa\nsd\nsi\nta\nte\nur" > "$LANG_LIST_PATH"
12
+ fi
13
 
14
 
15
  # Hardcode the Conda environment name