Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,9 +16,9 @@ os.system('pip install git+https://github.com/opendatalab/MinerU.git@dev')
|
|
| 16 |
|
| 17 |
os.system('wget https://github.com/opendatalab/MinerU/raw/master/scripts/download_models_hf.py -O download_models_hf.py')
|
| 18 |
os.system('python download_models_hf.py')
|
| 19 |
-
os.system("sed -i 's|cpu|cuda|g' /home/user/magic-pdf.json")
|
| 20 |
|
| 21 |
-
os.system('cp -r paddleocr /home/user/.paddleocr')
|
| 22 |
from gradio_pdf import PDF
|
| 23 |
|
| 24 |
import gradio as gr
|
|
|
|
| 16 |
|
| 17 |
os.system('wget https://github.com/opendatalab/MinerU/raw/master/scripts/download_models_hf.py -O download_models_hf.py')
|
| 18 |
os.system('python download_models_hf.py')
|
| 19 |
+
# os.system("sed -i 's|cpu|cuda|g' /home/user/magic-pdf.json")
|
| 20 |
|
| 21 |
+
# os.system('cp -r paddleocr /home/user/.paddleocr')
|
| 22 |
from gradio_pdf import PDF
|
| 23 |
|
| 24 |
import gradio as gr
|