Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,8 @@ from loguru import logger
|
|
| 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('
|
|
|
|
| 12 |
try:
|
| 13 |
with open('/home/user/mineru.json', 'r+') as file:
|
| 14 |
config = json.load(file)
|
|
|
|
| 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 |
+
os.system('mineru-models-download -s huggingface -m all')
|
| 13 |
try:
|
| 14 |
with open('/home/user/mineru.json', 'r+') as file:
|
| 15 |
config = json.load(file)
|