myhloli commited on
Commit
c73f5d3
1 Parent(s): c86d526

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,10 +15,10 @@ os.system('pip install -U magic_pdf-0.9.0a7-py3-none-any.whl')
15
  from huggingface_hub import snapshot_download
16
  model_dir = snapshot_download('opendatalab/PDF-Extract-Kit')
17
 
18
- os.system('wget https://github.com/opendatalab/MinerU/raw/master/magic-pdf.template.json')
19
  os.system('cp magic-pdf.template.json ~/magic-pdf.json')
20
  os.system(f"sed -i 's|/tmp/models|{model_dir}/models|g' /home/user/magic-pdf.json")
21
- os.system("sed -i 's|cpu|cuda|g' /home/user/magic-pdf.json")
22
 
23
  os.system('cp -r paddleocr /home/user/.paddleocr')
24
 
 
15
  from huggingface_hub import snapshot_download
16
  model_dir = snapshot_download('opendatalab/PDF-Extract-Kit')
17
 
18
+ # os.system('wget https://github.com/opendatalab/MinerU/raw/master/magic-pdf.template.json')
19
  os.system('cp magic-pdf.template.json ~/magic-pdf.json')
20
  os.system(f"sed -i 's|/tmp/models|{model_dir}/models|g' /home/user/magic-pdf.json")
21
+ # os.system("sed -i 's|cpu|cuda|g' /home/user/magic-pdf.json")
22
 
23
  os.system('cp -r paddleocr /home/user/.paddleocr')
24