myhloli commited on
Commit
3160a64
·
1 Parent(s): 6d8c99f

add rapidtable

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -15,10 +15,13 @@ os.system('pip install git+https://github.com/opendatalab/MinerU.git@dev')
15
  os.system('wget https://github.com/opendatalab/MinerU/raw/dev/docs/download_models_hf.py -O download_models_hf.py')
16
  os.system('python download_models_hf.py')
17
  os.system("sed -i 's|cpu|cuda|g' /home/user/magic-pdf.json")
 
18
 
19
  os.system('cp -r paddleocr /home/user/.paddleocr')
20
 
21
  os.system("pip install gradio-pdf==0.0.17")
 
 
22
  from gradio_pdf import PDF
23
 
24
  import gradio as gr
 
15
  os.system('wget https://github.com/opendatalab/MinerU/raw/dev/docs/download_models_hf.py -O download_models_hf.py')
16
  os.system('python download_models_hf.py')
17
  os.system("sed -i 's|cpu|cuda|g' /home/user/magic-pdf.json")
18
+ os.system("sed -i 's|tablemaster|rapid_table|g' /root/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
+ os.system('pip install rapid-table')
24
+ os.system('pip install rapidocr-paddle')
25
  from gradio_pdf import PDF
26
 
27
  import gradio as gr