SEAGULL / app.py
Zevin2023's picture
Update app.py
47baf42 verified
raw
history blame contribute delete
468 Bytes
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")