Spaces:
Runtime error
Runtime error
initial commit
Browse files- app.py +1 -7
- 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("
|
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
|