Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,15 @@
|
|
1 |
import subprocess
|
|
|
2 |
|
3 |
# Clone the repository
|
4 |
subprocess.run(['git', 'clone', 'https://github.com/abacaj/replit-3B-inference.git'])
|
5 |
|
6 |
# Change directory
|
7 |
-
|
8 |
|
9 |
# Create and activate virtual environment
|
10 |
subprocess.run(['python', '-m', 'venv', 'env'])
|
11 |
-
subprocess.run(['
|
12 |
|
13 |
# Update submodules
|
14 |
subprocess.run(['git', 'submodule', 'update', '--init', '--recursive'])
|
|
|
1 |
import subprocess
|
2 |
+
import os
|
3 |
|
4 |
# Clone the repository
|
5 |
subprocess.run(['git', 'clone', 'https://github.com/abacaj/replit-3B-inference.git'])
|
6 |
|
7 |
# Change directory
|
8 |
+
os.chdir('replit-3B-inference')
|
9 |
|
10 |
# Create and activate virtual environment
|
11 |
subprocess.run(['python', '-m', 'venv', 'env'])
|
12 |
+
subprocess.run(['env/bin/activate'])
|
13 |
|
14 |
# Update submodules
|
15 |
subprocess.run(['git', 'submodule', 'update', '--init', '--recursive'])
|