KavyaBansal commited on
Commit
ddde77a
·
verified ·
1 Parent(s): 31cec76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -17,7 +17,9 @@ def install_packages():
17
  for package in packages:
18
  try:
19
  print(f"Installing {package}...")
20
- pip install {package} -q
 
 
21
  print(f"Successfully installed {package}")
22
  except Exception as e:
23
  print(f"Error installing {package}: {e}")
 
17
  for package in packages:
18
  try:
19
  print(f"Installing {package}...")
20
+ import subprocess
21
+ # Install a package quietly
22
+ subprocess.run([sys.executable, '-m', 'pip', 'install', '{package}', '-q'])
23
  print(f"Successfully installed {package}")
24
  except Exception as e:
25
  print(f"Error installing {package}: {e}")