Spaces:
Runtime error
Runtime error
File size: 495 Bytes
e638d96 63ece73 16365ee e638d96 6c839c8 16365ee e638d96 63ece73 16365ee 07238b7 e638d96 16365ee e638d96 16365ee e638d96 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
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'])
|