Spaces:
Running
on
L40S
Running
on
L40S
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,8 +9,8 @@ if __name__ == '__main__':
|
|
| 9 |
os.system('pip uninstall -y mineru')
|
| 10 |
os.system('pip install git+https://github.com/myhloli/Magic-PDF.git@dev')
|
| 11 |
os.system('pip install -U mineru-vl-utils')
|
| 12 |
-
|
| 13 |
-
os.system('mineru-models-download -s modelscope -m all')
|
| 14 |
os.environ['MINERU_MODEL_SOURCE'] = "local"
|
| 15 |
try:
|
| 16 |
with open('/home/user/mineru.json', 'r+') as file:
|
|
|
|
| 9 |
os.system('pip uninstall -y mineru')
|
| 10 |
os.system('pip install git+https://github.com/myhloli/Magic-PDF.git@dev')
|
| 11 |
os.system('pip install -U mineru-vl-utils')
|
| 12 |
+
os.system('mineru-models-download -s huggingface -m all')
|
| 13 |
+
# os.system('mineru-models-download -s modelscope -m all')
|
| 14 |
os.environ['MINERU_MODEL_SOURCE'] = "local"
|
| 15 |
try:
|
| 16 |
with open('/home/user/mineru.json', 'r+') as file:
|