add online demo
Browse files
app.py
CHANGED
|
@@ -5,37 +5,34 @@ if __name__ == '__main__':
|
|
| 5 |
os.system("pip install -e .")
|
| 6 |
|
| 7 |
# Install NVM (Node Version Manager)
|
| 8 |
-
os.system("curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash")
|
| 9 |
|
| 10 |
-
# Source the appropriate shell configuration file
|
| 11 |
-
os.system("source ~/.bashrc") # You can change to ~/.zshrc based on your shell
|
| 12 |
|
| 13 |
-
# Install Node.js version 18.16.0
|
| 14 |
-
os.system("nvm install v18.16.0")
|
| 15 |
|
| 16 |
-
# Install pnpm (package manager)
|
| 17 |
-
os.system("curl -fsSL https://get.pnpm.io/install.sh | sh -")
|
| 18 |
|
| 19 |
-
# Source the shell configuration file again (for pnpm)
|
| 20 |
-
os.system("source ~/.bashrc") # You can change to ~/.zshrc based on your shell
|
| 21 |
|
| 22 |
-
# Verify if pnpm was installed correctly
|
| 23 |
-
os.system("pnpm --version")
|
| 24 |
|
| 25 |
# Clone the Gradio BBox repository
|
| 26 |
-
os.system("git clone https://github.com/chencn2020/gradio-bbox.git")
|
| 27 |
|
| 28 |
-
# Change into the cloned repository directory
|
| 29 |
-
os.system("cd gradio-bbox")
|
| 30 |
|
| 31 |
-
# Build frontend
|
| 32 |
-
os.system("bash scripts/build_frontend.sh")
|
| 33 |
|
| 34 |
-
# Change back to the previous directory
|
| 35 |
-
os.system("cd ..")
|
| 36 |
-
|
| 37 |
-
# Install the package again in editable mode
|
| 38 |
-
os.system("pip install -e .")
|
| 39 |
|
| 40 |
# Install Segment Anything repository from GitHub
|
| 41 |
os.system("pip install git+https://github.com/facebookresearch/segment-anything.git")
|
|
|
|
| 5 |
os.system("pip install -e .")
|
| 6 |
|
| 7 |
# Install NVM (Node Version Manager)
|
| 8 |
+
# os.system("curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash")
|
| 9 |
|
| 10 |
+
# # Source the appropriate shell configuration file
|
| 11 |
+
# os.system("source ~/.bashrc") # You can change to ~/.zshrc based on your shell
|
| 12 |
|
| 13 |
+
# # Install Node.js version 18.16.0
|
| 14 |
+
# os.system("nvm install v18.16.0")
|
| 15 |
|
| 16 |
+
# # Install pnpm (package manager)
|
| 17 |
+
# os.system("curl -fsSL https://get.pnpm.io/install.sh | sh -")
|
| 18 |
|
| 19 |
+
# # Source the shell configuration file again (for pnpm)
|
| 20 |
+
# os.system("source ~/.bashrc") # You can change to ~/.zshrc based on your shell
|
| 21 |
|
| 22 |
+
# # Verify if pnpm was installed correctly
|
| 23 |
+
# os.system("pnpm --version")
|
| 24 |
|
| 25 |
# Clone the Gradio BBox repository
|
| 26 |
+
# os.system("git clone https://github.com/chencn2020/gradio-bbox.git")
|
| 27 |
|
| 28 |
+
# # Change into the cloned repository directory
|
| 29 |
+
# os.system("cd gradio-bbox")
|
| 30 |
|
| 31 |
+
# # Build frontend
|
| 32 |
+
# os.system("bash scripts/build_frontend.sh")
|
| 33 |
|
| 34 |
+
# # Change back to the previous directory
|
| 35 |
+
# os.system("cd ..")
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
# Install Segment Anything repository from GitHub
|
| 38 |
os.system("pip install git+https://github.com/facebookresearch/segment-anything.git")
|