raannakasturi commited on
Commit
ef6cdea
·
verified ·
1 Parent(s): c7bbcef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -30,10 +30,12 @@ with gr.Blocks(theme=theme, title="Binary Biology") as app:
30
 
31
  if __name__ == "__main__":
32
  try:
 
33
  subprocess.run(['apt', 'install', '-y', 'graphviz'])
34
  print("Graphviz installed successfully")
35
  except Exception:
36
  try:
 
37
  subprocess.run(['sudo', 'apt', 'install', '-y', 'graphviz'])
38
  print("Graphviz installed successfully using sudo")
39
  except:
 
30
 
31
  if __name__ == "__main__":
32
  try:
33
+ subprocess.run(['apt', 'update'])
34
  subprocess.run(['apt', 'install', '-y', 'graphviz'])
35
  print("Graphviz installed successfully")
36
  except Exception:
37
  try:
38
+ subprocess.run(['sudo', 'apt', 'update'])
39
  subprocess.run(['sudo', 'apt', 'install', '-y', 'graphviz'])
40
  print("Graphviz installed successfully using sudo")
41
  except: