-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support vscode lanuch for debug python code
- Loading branch information
1 parent
ef0436f
commit 6ac81f7
Showing
1 changed file
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "debugpy: table_app mirror", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"module": "streamlit", | ||
"console": "integratedTerminal", | ||
"args": [ | ||
"run", | ||
"${workspaceFolder}/tabled/table_app.py" | ||
], | ||
"env": { | ||
"STREAMLIT_SERVER_PORT": "8501", | ||
"XDG_CACHE_HOME": "${workspaceFolder}/cache", | ||
"HF_ENDPOINT": "http://localhost:8090" | ||
}, | ||
"justMyCode": false | ||
}, | ||
{ | ||
"name": "debugpy: table_app offline", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"module": "streamlit", | ||
"console": "integratedTerminal", | ||
"args": [ | ||
"run", | ||
"${workspaceFolder}/tabled/table_app.py" | ||
], | ||
"env": { | ||
"STREAMLIT_SERVER_PORT": "8501", | ||
"XDG_CACHE_HOME": "${workspaceFolder}/cache", | ||
"HF_HUB_OFFLINE": "true", | ||
"DETECTOR_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_det3/snapshots/467ee9ec33e6e6c5f73e57dbc1415b14032f5b95", | ||
"LAYOUT_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_layout3/snapshots/6f4c319b213ddbe736c9fe6de87ad7dc3bbb0a1e", | ||
"TABLE_REC_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_tablerec/snapshots/8bca165f81e9cee5fb382413eb23175079917d14", | ||
"RECOGNITION_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_rec2/snapshots/6611509b2c3a32c141703ce19adc899d9d0abf41", | ||
}, | ||
"justMyCode": false | ||
}, | ||
{ | ||
"name": "debugpy: extract mirror", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/tabled/extract.py", | ||
"console": "integratedTerminal", | ||
"args": [ | ||
"${workspaceFolder}/tabled/static/images/table_example.png", | ||
"${workspaceFolder}/results", | ||
"--format", "markdown", | ||
"--save_debug_images" | ||
], | ||
"env": { | ||
"STREAMLIT_SERVER_PORT": "8501", | ||
"XDG_CACHE_HOME": "${workspaceFolder}/cache", | ||
"HF_ENDPOINT": "http://localhost:8090" | ||
}, | ||
"justMyCode": false | ||
}, | ||
{ | ||
"name": "debugpy: extract offline", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/tabled/extract.py", | ||
"console": "integratedTerminal", | ||
"args": [ | ||
"${workspaceFolder}/tabled/static/images/table_example.png", | ||
"${workspaceFolder}/results", | ||
"--format", "markdown", | ||
"--save_debug_images" | ||
], | ||
"env": { | ||
"STREAMLIT_SERVER_PORT": "8501", | ||
"XDG_CACHE_HOME": "${workspaceFolder}/cache", | ||
"HF_HUB_OFFLINE": "true", | ||
"DETECTOR_MODEL_CHECKPOINT": "${workspaceFolder}/cache/huggingface/hub/models--vikp--surya_det3/snapshots/467ee9ec33e6e6c5f73e57dbc1415b14032f5b95", | ||
"TEXIFY_MODEL_NAME": "${workspaceFolder}/cache/huggingface/hub/models--vikp--tabled/snapshots/ce49c1fe10842e78b8be61f9e762b85ac952807d" | ||
}, | ||
"justMyCode": false | ||
} | ||
] | ||
} |