Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ os.system('pip install git+https://github.com/opendatalab/MinerU.git@dev')
|
|
| 19 |
# os.system(f"sed -i 's|/tmp/models|{model_dir}/models|g' /home/user/magic-pdf.json")
|
| 20 |
# os.system(f"sed -i 's|/tmp/layoutreader|{layoutreader_model_dir}|g' /home/user/magic-pdf.json")
|
| 21 |
|
| 22 |
-
os.system('wget https://github.com/opendatalab/MinerU/raw/
|
| 23 |
os.system('python download_models_hf.py')
|
| 24 |
os.system("sed -i 's|cpu|cuda|g' /home/user/magic-pdf.json")
|
| 25 |
|
|
|
|
| 19 |
# os.system(f"sed -i 's|/tmp/models|{model_dir}/models|g' /home/user/magic-pdf.json")
|
| 20 |
# os.system(f"sed -i 's|/tmp/layoutreader|{layoutreader_model_dir}|g' /home/user/magic-pdf.json")
|
| 21 |
|
| 22 |
+
os.system('wget https://github.com/opendatalab/MinerU/raw/master/docs/download_models_hf.py -O download_models_hf.py')
|
| 23 |
os.system('python download_models_hf.py')
|
| 24 |
os.system("sed -i 's|cpu|cuda|g' /home/user/magic-pdf.json")
|
| 25 |
|