Skip to content

Commit

Permalink
Support vscode lanuch for debug python code
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyao9184 committed Nov 30, 2024
1 parent ef0436f commit 6ac81f7
Showing 1 changed file with 83 additions and 0 deletions.
83 changes: 83 additions & 0 deletions .vscode/launch.json
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
}
]
}

0 comments on commit 6ac81f7

Please sign in to comment.