DrishtiSharma commited on
Commit
8d5517e
·
verified ·
1 Parent(s): c3da43d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -10,13 +10,15 @@ def install_dependencies():
10
  try:
11
  # Install torch first
12
  subprocess.check_call([sys.executable, "-m", "pip", "install", "torch==2.0.1"])
13
- # Install other dependencies from requirements.txt
 
 
14
  subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", "requirements.txt"])
15
  except subprocess.CalledProcessError as e:
16
- print(f"Error occurred during dependency installation: {e}")
17
  sys.exit(1)
18
 
19
- # Run the dependency installer
20
  install_dependencies()
21
 
22
 
 
10
  try:
11
  # Install torch first
12
  subprocess.check_call([sys.executable, "-m", "pip", "install", "torch==2.0.1"])
13
+ # Install flash-attn after torch
14
+ subprocess.check_call([sys.executable, "-m", "pip", "install", "flash-attn==2.7.2.post1"])
15
+ # Install other dependencies
16
  subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", "requirements.txt"])
17
  except subprocess.CalledProcessError as e:
18
+ print(f"Error occurred while installing dependencies: {e}")
19
  sys.exit(1)
20
 
21
+ # Call the function to install dependencies
22
  install_dependencies()
23
 
24