Spaces:
Running
on
L4
Running
on
L4
Update app.py
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/dev/
|
16 |
os.system('python download_models_hf.py')
|
17 |
os.system("sed -i 's|cpu|cuda|g' /home/user/magic-pdf.json")
|
18 |
|
|
|
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/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 |
|