Shrirang20 commited on
Commit
dba9849
·
verified ·
1 Parent(s): 4224918

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -19,13 +19,17 @@
19
  # cd ..
20
  #
21
  import os
 
 
22
 
23
  print("CURRENT WORKING DIRECTORY:",os.getcwd())
24
  os.system('wget https://indic-asr-public.objectstore.e2enetworks.net/ai4b_nemo.zip')
25
  os.system('unzip -q ai4b_nemo.zip')
26
  os.chdir('NeMo')
 
27
  os.system('bash reinstall.sh')
28
  os.chdir('..')
 
29
 
30
  # Commented out IPython magic to ensure Python compatibility.
31
  # %%capture
 
19
  # cd ..
20
  #
21
  import os
22
+ import subprocess
23
+ import sys
24
 
25
  print("CURRENT WORKING DIRECTORY:",os.getcwd())
26
  os.system('wget https://indic-asr-public.objectstore.e2enetworks.net/ai4b_nemo.zip')
27
  os.system('unzip -q ai4b_nemo.zip')
28
  os.chdir('NeMo')
29
+ subprocess.run([sys.executable, '-m', 'pip', 'install', '-e', '.'])
30
  os.system('bash reinstall.sh')
31
  os.chdir('..')
32
+ os.execv(sys.executable, ['python'] + sys.argv)
33
 
34
  # Commented out IPython magic to ensure Python compatibility.
35
  # %%capture