yizhangliu commited on
Commit
023f85e
1 Parent(s): 11a67da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -51,6 +51,9 @@ if os.environ.get('IS_MY_DEBUG') is not None:
51
  inpainting_enable = False
52
  kosmos_enable = False
53
 
 
 
 
54
  try:
55
  from lama_cleaner.model_manager import ModelManager
56
  from lama_cleaner.schema import Config as lama_Config
 
51
  inpainting_enable = False
52
  kosmos_enable = False
53
 
54
+ if kosmos_enable:
55
+ os.system("pip install transformers@git+https://github.com/huggingface/transformers.git@main")
56
+
57
  try:
58
  from lama_cleaner.model_manager import ModelManager
59
  from lama_cleaner.schema import Config as lama_Config