Spaces:
Running
on
L4
Running
on
L4
update download models script url
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ import pymupdf
|
|
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/
|
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")
|
@@ -20,8 +20,6 @@ os.system("sed -i 's|tablemaster|rapid_table|g' /root/magic-pdf.json")
|
|
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
|
|
|
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')
|
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")
|
|
|
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
|