Spaces:
Running
on
L4
Running
on
L4
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,8 @@ import re
|
|
9 |
import uuid
|
10 |
import pymupdf
|
11 |
|
12 |
-
|
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.
|
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
|