myhloli commited on
Commit
d1a9d53
·
verified ·
1 Parent(s): 9d59b27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -11,6 +11,7 @@ if __name__ == '__main__':
11
  os.system('pip install -U mineru-vl-utils')
12
  # os.system('mineru-models-download -s huggingface -m all')
13
  os.system('mineru-models-download -s modelscope -m all')
 
14
  try:
15
  with open('/home/user/mineru.json', 'r+') as file:
16
  config = json.load(file)
 
11
  os.system('pip install -U mineru-vl-utils')
12
  # os.system('mineru-models-download -s huggingface -m all')
13
  os.system('mineru-models-download -s modelscope -m all')
14
+ os.environ['MINERU_MODEL_SOURCE'] = "local"
15
  try:
16
  with open('/home/user/mineru.json', 'r+') as file:
17
  config = json.load(file)