yizhangliu commited on
Commit
488fb9a
1 Parent(s): 023f85e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,6 @@ warnings.filterwarnings('ignore')
4
 
5
  import subprocess, io, os, sys, time
6
  os.system("pip install gradio==3.40.1")
7
- # os.system("pip install transformers==4.31.0")
8
  import gradio as gr
9
 
10
  from loguru import logger
@@ -52,7 +51,8 @@ if os.environ.get('IS_MY_DEBUG') is not None:
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
 
4
 
5
  import subprocess, io, os, sys, time
6
  os.system("pip install gradio==3.40.1")
 
7
  import gradio as gr
8
 
9
  from loguru import logger
 
51
  kosmos_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.34.0")
56
 
57
  try:
58
  from lama_cleaner.model_manager import ModelManager