Shrirang20 commited on
Commit
712c7e8
·
verified ·
1 Parent(s): 8ed6eba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -25,14 +25,14 @@ import sys
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
 
 
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