Zevin2023 commited on
Commit
45c48cf
·
verified ·
1 Parent(s): 13edac4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -3,14 +3,13 @@ import sys
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")
9
-
10
- os.chdir("checkpoints")
11
- os.system("git lfs install")
12
- os.system("git clone https://huggingface.co/Zevin2023/SEAGULL-7B")
13
- os.chdir("..")
14
 
15
  from zipfile import ZipFile
16
  z = ZipFile("gradio.zip")
 
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")
 
 
 
 
 
13
 
14
  from zipfile import ZipFile
15
  z = ZipFile("gradio.zip")