Update app.py
Browse files
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
|
|
|
|
|
14 |
subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", "requirements.txt"])
|
15 |
except subprocess.CalledProcessError as e:
|
16 |
-
print(f"Error occurred
|
17 |
sys.exit(1)
|
18 |
|
19 |
-
#
|
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 |
|