Spaces:
Runtime error
Runtime error
Shrirang20
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -24,11 +24,15 @@ import sys
|
|
24 |
|
25 |
def install_with_subprocess(args):
|
26 |
subprocess.run(args, check=True)
|
|
|
|
|
|
|
27 |
|
28 |
print("CURRENT WORKING DIRECTORY:",os.getcwd())
|
29 |
setup_flag = 'setup_complete.flag'
|
30 |
|
31 |
if not os.path.exists(setup_flag):
|
|
|
32 |
os.system('wget https://indic-asr-public.objectstore.e2enetworks.net/ai4b_nemo.zip')
|
33 |
os.system('unzip -q ai4b_nemo.zip')
|
34 |
|
|
|
24 |
|
25 |
def install_with_subprocess(args):
|
26 |
subprocess.run(args, check=True)
|
27 |
+
|
28 |
+
def remove_tensorflow():
|
29 |
+
subprocess.run([sys.executable, '-m', 'pip', 'uninstall', '-y', 'tensorflow'], check=True)
|
30 |
|
31 |
print("CURRENT WORKING DIRECTORY:",os.getcwd())
|
32 |
setup_flag = 'setup_complete.flag'
|
33 |
|
34 |
if not os.path.exists(setup_flag):
|
35 |
+
remove_tensorflow()
|
36 |
os.system('wget https://indic-asr-public.objectstore.e2enetworks.net/ai4b_nemo.zip')
|
37 |
os.system('unzip -q ai4b_nemo.zip')
|
38 |
|