Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,14 +25,14 @@ import sys
|
|
| 25 |
def install_with_subprocess(args):
|
| 26 |
subprocess.run(args, check=True)
|
| 27 |
|
| 28 |
-
|
| 29 |
-
|
| 30 |
|
| 31 |
print("CURRENT WORKING DIRECTORY:",os.getcwd())
|
| 32 |
setup_flag = 'setup_complete.flag'
|
| 33 |
|
| 34 |
if not os.path.exists(setup_flag):
|
| 35 |
-
|
| 36 |
os.system('wget https://indic-asr-public.objectstore.e2enetworks.net/ai4b_nemo.zip')
|
| 37 |
os.system('unzip -q ai4b_nemo.zip')
|
| 38 |
|
|
|
|
| 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 |
|