alamin655's picture
Update app.py
6c839c8
raw
history blame
501 Bytes
import subprocess
import os
# Clone the repository
subprocess.run(['git', 'clone', 'https://github.com/alamin655/replit-3B-inference.git'])
# Change directory
os.chdir('replit-3B-inference')
# Update submodules
subprocess.run(['git', 'submodule', 'update', '--init', '--recursive'])
# Install requirements
subprocess.run(['pip', 'install', '-r', 'requirements.txt'])
# Download the model
subprocess.run(['python', 'download_model.py'])
# Run inference
subprocess.run(['python', 'inference.py'])