Zevin2023 commited on
Commit
c5b64a0
·
verified ·
1 Parent(s): 24010b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -16
app.py CHANGED
@@ -3,31 +3,32 @@ import os
3
  if __name__ == '__main__':
4
  # Install the package in editable mode
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
- print("nvm installed OK.")
17
 
18
- # Install pnpm (package manager)
19
- os.system("curl -fsSL https://get.pnpm.io/install.sh | sh -")
20
 
21
- # Source the shell configuration file again (for pnpm)
22
- os.system("source ~/.bashrc") # You can change to ~/.zshrc based on your shell
23
 
24
- # Verify if pnpm was installed correctly
25
- os.system("pnpm --version")
26
 
27
- print("pnpm installed OK.")
28
 
29
- # Clone the Gradio BBox repository
30
- os.system("git clone https://github.com/chencn2020/gradio-bbox.git")
31
 
32
  # Change into the cloned repository directory
33
  os.system("cd gradio-bbox")
 
3
  if __name__ == '__main__':
4
  # Install the package in editable mode
5
  os.system("pip install -e .")
6
+
7
+ os.system("pip install git+https://github.com/facebookresearch/segment-anything.git")
8
  # Install NVM (Node Version Manager)
9
+ # os.system("curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash")
10
 
11
+ # # # Source the appropriate shell configuration file
12
+ # os.system("source ~/.bashrc") # You can change to ~/.zshrc based on your shell
13
 
14
+ # # # Install Node.js version 18.16.0
15
+ # os.system("nvm install v18.16.0")
16
 
17
+ # print("nvm installed OK.")
18
 
19
+ # # Install pnpm (package manager)
20
+ # os.system("curl -fsSL https://get.pnpm.io/install.sh | sh -")
21
 
22
+ # # Source the shell configuration file again (for pnpm)
23
+ # os.system("source ~/.bashrc") # You can change to ~/.zshrc based on your shell
24
 
25
+ # # Verify if pnpm was installed correctly
26
+ # os.system("pnpm --version")
27
 
28
+ # print("pnpm installed OK.")
29
 
30
+ # # Clone the Gradio BBox repository
31
+ # os.system("git clone https://github.com/chencn2020/gradio-bbox.git")
32
 
33
  # Change into the cloned repository directory
34
  os.system("cd gradio-bbox")