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'])