Shrirang20 commited on
Commit
088641a
1 Parent(s): b8b18f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -3
app.py CHANGED
@@ -32,10 +32,23 @@ if not os.path.exists(setup_flag):
32
  os.system('bash reinstall.sh')
33
  os.chdir('..')
34
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  with open(setup_flag, 'w') as f:
36
  f.write('Setup complete')
37
 
38
  os.execv(sys.executable, ['python'] + sys.argv)
 
39
 
40
  # Commented out IPython magic to ensure Python compatibility.
41
  # %%capture
@@ -53,13 +66,13 @@ if not os.path.exists(setup_flag):
53
  # %%shell
54
  #
55
  # apt-get install libsndfile1-dev ffmpeg
56
- #
57
  # git clone https://github.com/gokulkarthik/TTS
58
  # cd TTS
59
- #
60
  # pip3 install -e .[all]
61
  # pip3 install -r requirements.txt
62
- #
63
  # cd ..
64
  #
65
 
 
32
  os.system('bash reinstall.sh')
33
  os.chdir('..')
34
 
35
+ os.system('git clone -q https://github.com/VarunGumma/IndicTransTokenizer')
36
+ os.chdir('IndicTransTokenizer')
37
+ subprocess.run([sys.executable,'-m','pip','install','-q','--editable','./'])
38
+ os.chdir('..')
39
+
40
+ subprocess.run(['apt-get', 'install', '-y', 'libsndfile1-dev', 'ffmpeg'])
41
+ os.system('git clone https://github.com/gokulkarthik/TTS')
42
+ os.chdir('TTS')
43
+ subprocess.run(['pip3', 'install', '-e', '.[all]'])
44
+ subprocess.run(['pip3', 'install', '-r', 'requirements.txt'])
45
+ os.chdir('..')
46
+
47
  with open(setup_flag, 'w') as f:
48
  f.write('Setup complete')
49
 
50
  os.execv(sys.executable, ['python'] + sys.argv)
51
+
52
 
53
  # Commented out IPython magic to ensure Python compatibility.
54
  # %%capture
 
66
  # %%shell
67
  #
68
  # apt-get install libsndfile1-dev ffmpeg
69
+
70
  # git clone https://github.com/gokulkarthik/TTS
71
  # cd TTS
72
+
73
  # pip3 install -e .[all]
74
  # pip3 install -r requirements.txt
75
+
76
  # cd ..
77
  #
78