liuyizhang commited on
Commit
490d2ae
2 Parent(s): 7a6569e d64c583

Merge branch 'main' of https://huggingface.co/spaces/yizhangliu/Grounded-Segment-Anything

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -43,7 +43,7 @@ inpainting_enable = True
43
  ram_enable = True
44
  lama_cleaner_enable = True
45
 
46
- kosmos_enable = False
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