import os | |
import sys | |
if __name__ == '__main__': | |
# Install the package in editable mode | |
os.system("pip uninstall -y gradio") | |
os.system("pip install -e .") | |
os.system("pip install git+https://github.com/facebookresearch/segment-anything.git") | |
from zipfile import ZipFile | |
z = ZipFile("gradio.zip") | |
z.extractall() | |
os.chdir("gradio-bbox") | |
os.system("pip install -e .") | |
os.chdir("..") | |
os.system("python run.py") | |