Zevin2023 commited on
Commit
6daf923
·
verified ·
1 Parent(s): e18c1bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -7,6 +7,11 @@ if __name__ == '__main__':
7
  os.system("pip install -e .")
8
  os.system("pip install git+https://github.com/facebookresearch/segment-anything.git")
9
 
 
 
 
 
 
10
  from zipfile import ZipFile
11
  z = ZipFile("gradio.zip")
12
  z.extractall()
@@ -14,13 +19,7 @@ if __name__ == '__main__':
14
  os.system("pip install -e .")
15
  print('path: -----', os.getcwd())
16
 
17
- # sys.path.append(os.getcwd())
18
  os.chdir("..")
19
- # sys.path.append(os.getcwd())
20
- print('path: -----', os.getcwd())
21
- print('path: -----', sys.path)
22
- os.system("pip list")
23
- os.system("pip show gradio")
24
 
25
  os.system("python run.py")
26
 
 
7
  os.system("pip install -e .")
8
  os.system("pip install git+https://github.com/facebookresearch/segment-anything.git")
9
 
10
+ os.chdir("checkpoint")
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")
17
  z.extractall()
 
19
  os.system("pip install -e .")
20
  print('path: -----', os.getcwd())
21
 
 
22
  os.chdir("..")
 
 
 
 
 
23
 
24
  os.system("python run.py")
25