Zevin2023 commited on
Commit
47baf42
·
verified ·
1 Parent(s): 8834f72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -49
app.py CHANGED
@@ -3,10 +3,6 @@ import sys
3
 
4
  if __name__ == '__main__':
5
  # Install the package in editable mode
6
- os.system("pip install -U huggingface_hub ")
7
- os.system("huggingface-cli download --resume-download Zevin2023/SEAGULL-7B --local-dir ./checkpoints/SEAGULL-7B --local-dir-use-symlinks False")
8
- os.system("ls ./checkpoints/SEAGULL-7B")
9
-
10
  os.system("pip uninstall -y gradio")
11
  os.system("pip install -e .")
12
  os.system("pip install git+https://github.com/facebookresearch/segment-anything.git")
@@ -16,51 +12,7 @@ if __name__ == '__main__':
16
  z.extractall()
17
  os.chdir("gradio-bbox")
18
  os.system("pip install -e .")
19
- print('path: -----', os.getcwd())
20
-
21
  os.chdir("..")
22
 
23
  os.system("python run.py")
24
-
25
-
26
- # Install NVM (Node Version Manager)
27
- # os.system("curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash")
28
-
29
- # # # Source the appropriate shell configuration file
30
- # os.system("source ~/.bashrc") # You can change to ~/.zshrc based on your shell
31
-
32
- # # # Install Node.js version 18.16.0
33
- # os.system("nvm install v18.16.0")
34
-
35
- # print("nvm installed OK.")
36
-
37
- # # Install pnpm (package manager)
38
- # os.system("curl -fsSL https://get.pnpm.io/install.sh | sh -")
39
-
40
- # # Source the shell configuration file again (for pnpm)
41
- # os.system("source ~/.bashrc") # You can change to ~/.zshrc based on your shell
42
-
43
- # # Verify if pnpm was installed correctly
44
- # os.system("pnpm --version")
45
-
46
- # print("pnpm installed OK.")
47
-
48
- # # Clone the Gradio BBox repository
49
- # os.system("git clone https://github.com/chencn2020/gradio-bbox.git")
50
- # Build frontend
51
- # os.system("bash gradio-bbox/scripts/build_frontend.sh")
52
-
53
- # Change back to the previous directory
54
- # os.system("cd ..")
55
-
56
- # import argparse
57
- # from demo.UI import Main_ui
58
-
59
-
60
- # parser = argparse.ArgumentParser(description='SEAGULL', formatter_class=argparse.RawTextHelpFormatter)
61
- # parser.add_argument('--model', help='path to seagull model', default='Zevin2023/SEAGULL-7B')
62
- # parser.add_argument('--example_path', help='path to examples', default='./imgs/Examples')
63
- # args = parser.parse_args()
64
-
65
- # demo = Main_ui(args).load_demo()
66
- # demo.launch()
 
3
 
4
  if __name__ == '__main__':
5
  # Install the package in editable mode
 
 
 
 
6
  os.system("pip uninstall -y gradio")
7
  os.system("pip install -e .")
8
  os.system("pip install git+https://github.com/facebookresearch/segment-anything.git")
 
12
  z.extractall()
13
  os.chdir("gradio-bbox")
14
  os.system("pip install -e .")
 
 
15
  os.chdir("..")
16
 
17
  os.system("python run.py")
18
+