Spaces:
Running
on
T4
Running
on
T4
Merge branch 'main' of https://huggingface.co/spaces/yizhangliu/Grounded-Segment-Anything
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ inpainting_enable = True
|
|
43 |
ram_enable = True
|
44 |
lama_cleaner_enable = True
|
45 |
|
46 |
-
kosmos_enable =
|
47 |
|
48 |
if os.environ.get('IS_MY_DEBUG') is not None:
|
49 |
sam_enable = False
|
@@ -52,8 +52,9 @@ if os.environ.get('IS_MY_DEBUG') is not None:
|
|
52 |
|
53 |
if kosmos_enable:
|
54 |
# os.system("pip install transformers@git+https://github.com/huggingface/transformers.git@main")
|
55 |
-
os.system("pip install transformers==4.32.0")
|
56 |
-
|
|
|
57 |
try:
|
58 |
from lama_cleaner.model_manager import ModelManager
|
59 |
from lama_cleaner.schema import Config as lama_Config
|
|
|
43 |
ram_enable = True
|
44 |
lama_cleaner_enable = True
|
45 |
|
46 |
+
kosmos_enable = True
|
47 |
|
48 |
if os.environ.get('IS_MY_DEBUG') is not None:
|
49 |
sam_enable = False
|
|
|
52 |
|
53 |
if kosmos_enable:
|
54 |
# os.system("pip install transformers@git+https://github.com/huggingface/transformers.git@main")
|
55 |
+
# os.system("pip install transformers==4.32.0")
|
56 |
+
pass
|
57 |
+
|
58 |
try:
|
59 |
from lama_cleaner.model_manager import ModelManager
|
60 |
from lama_cleaner.schema import Config as lama_Config
|