Spaces:
Runtime error
Runtime error
Shrirang20
commited on
Update app.py
Browse files
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
|