alamin655 commited on
Commit
63ece73
1 Parent(s): e638d96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- subprocess.run(['cd', 'replit-3B-inference'])
8
 
9
  # Create and activate virtual environment
10
  subprocess.run(['python', '-m', 'venv', 'env'])
11
- subprocess.run(['source', 'env/bin/activate'])
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'])