myhloli commited on
Commit
47e0903
·
verified ·
1 Parent(s): 0d85725

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ os.system('pip install git+https://github.com/opendatalab/MinerU.git@dev')
19
  # os.system(f"sed -i 's|/tmp/models|{model_dir}/models|g' /home/user/magic-pdf.json")
20
  # os.system(f"sed -i 's|/tmp/layoutreader|{layoutreader_model_dir}|g' /home/user/magic-pdf.json")
21
 
22
- os.system('wget https://github.com/opendatalab/MinerU/raw/dev/docs/download_models_hf.py -O download_models_hf.py')
23
  os.system('python download_models_hf.py')
24
  os.system("sed -i 's|cpu|cuda|g' /home/user/magic-pdf.json")
25
 
 
19
  # os.system(f"sed -i 's|/tmp/models|{model_dir}/models|g' /home/user/magic-pdf.json")
20
  # os.system(f"sed -i 's|/tmp/layoutreader|{layoutreader_model_dir}|g' /home/user/magic-pdf.json")
21
 
22
+ os.system('wget https://github.com/opendatalab/MinerU/raw/master/docs/download_models_hf.py -O download_models_hf.py')
23
  os.system('python download_models_hf.py')
24
  os.system("sed -i 's|cpu|cuda|g' /home/user/magic-pdf.json")
25