Skip to content

Commit 4c2760c

Browse files
committed
Support vscode lanuch for debug python code
1 parent f3bbbfe commit 4c2760c

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
results/

Diff for: .vscode/launch.json

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "python: huggingface download models",
6+
"type": "debugpy",
7+
"request": "launch",
8+
"program": "${workspaceFolder}/MinerU/scripts/download_models_hf.py",
9+
"console": "integratedTerminal",
10+
"env": {
11+
"XDG_CACHE_HOME": "${workspaceFolder}/cache",
12+
"HF_ENDPOINT": "http://localhost:8090"
13+
},
14+
"justMyCode": false
15+
},
16+
{
17+
"name": "python: magic_pdf cli",
18+
"type": "debugpy",
19+
"request": "launch",
20+
"program": "${workspaceFolder}/MinerU/magic_pdf/tools/cli.py",
21+
"console": "integratedTerminal",
22+
"env": {
23+
"XDG_CACHE_HOME": "${workspaceFolder}/cache",
24+
"HF_ENDPOINT": "http://localhost:8090"
25+
},
26+
"args": [
27+
"--path", "${workspaceFolder}/MinerU/demo/small_ocr.pdf",
28+
"--output-dir", "${workspaceFolder}/results"
29+
],
30+
"justMyCode": false
31+
},
32+
{
33+
"name": "python: gradio app",
34+
"type": "debugpy",
35+
"request": "launch",
36+
"program": "${workspaceFolder}/MinerU/projects/gradio_app/app.py",
37+
"console": "integratedTerminal",
38+
"env": {
39+
"XDG_CACHE_HOME": "${workspaceFolder}/cache",
40+
"HF_ENDPOINT": "http://localhost:8090"
41+
},
42+
"cwd": "${workspaceFolder}/MinerU/projects/gradio_app",
43+
"justMyCode": false
44+
}
45+
]
46+
}

0 commit comments

Comments
 (0)