SkalskiP commited on
Commit
57227b2
1 Parent(s): 61d1727

initial commit

Browse files
Files changed (2) hide show
  1. app.py +1 -7
  2. requirements.txt +2 -0
app.py CHANGED
@@ -4,13 +4,7 @@ import os
4
  import gradio as gr
5
 
6
  # Clone the repository
7
- subprocess.run(shlex.split("git clone https://github.com/facebookresearch/segment-anything-2.git"))
8
-
9
- # Change to the repository directory
10
- os.chdir("segment-anything-2")
11
-
12
- # Install the package
13
- subprocess.run(shlex.split("pip install -e ."))
14
 
15
  import torch
16
  from sam2.build_sam import build_sam2
 
4
  import gradio as gr
5
 
6
  # Clone the repository
7
+ subprocess.run(shlex.split("pip install -q 'git+https://github.com/facebookresearch/segment-anything-2.git'"))
 
 
 
 
 
 
8
 
9
  import torch
10
  from sam2.build_sam import build_sam2
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ gradio
2
+ supervision