File size: 468 Bytes
effd827 0b875ea 68cea8b 8fa1f84 15ba762 effd827 c5b64a0 6daf923 14e113a 44b7eaf 47baf42 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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")
|