myhloli commited on
Commit
6fe2ef0
·
verified ·
1 Parent(s): ee83cdd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -9,8 +9,8 @@ import re
9
  import uuid
10
  import pymupdf
11
 
12
- # os.system('pip install -U magic-pdf==0.8.1')
13
- os.system('pip install git+https://github.com/opendatalab/MinerU.git@dev')
14
 
15
  os.system('wget https://github.com/opendatalab/MinerU/raw/master/scripts/download_models_hf.py -O download_models_hf.py')
16
  os.system('python download_models_hf.py')
@@ -19,7 +19,7 @@ os.system("sed -i 's|tablemaster|rapid_table|g' /home/user/magic-pdf.json")
19
 
20
  os.system('cp -r paddleocr /home/user/.paddleocr')
21
 
22
- os.system("pip install gradio-pdf==0.0.17")
23
  from gradio_pdf import PDF
24
 
25
  import gradio as gr
 
9
  import uuid
10
  import pymupdf
11
 
12
+ os.system('pip install -U magic-pdf==0.10.5')
13
+ #os.system('pip install git+https://github.com/opendatalab/MinerU.git@dev')
14
 
15
  os.system('wget https://github.com/opendatalab/MinerU/raw/master/scripts/download_models_hf.py -O download_models_hf.py')
16
  os.system('python download_models_hf.py')
 
19
 
20
  os.system('cp -r paddleocr /home/user/.paddleocr')
21
 
22
+ os.system("pip install gradio-pdf==0.0.19")
23
  from gradio_pdf import PDF
24
 
25
  import gradio as gr