alamin655's picture
Update app.py
07238b7 verified
raw
history blame contribute delete
No virus
495 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')
# Upgrade pip
subprocess.run (['python', '-m', 'pip', 'install', '--upgrade', 'pip'])
# 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'])