Skip to content

Commit

Permalink
Support vscode launch for debug gradio
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyao9184 committed Dec 15, 2024
1 parent 42dd429 commit d21cd0a
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,46 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "debugpy: tabled gradio mirror",
"type": "debugpy",
"request": "launch",
"program": "${env:CONDA_PREFIX}/envs/tabled/bin/gradio",
"console": "integratedTerminal",
"cwd": "${workspaceFolder}",
"args": [
"${workspaceFolder}/gradio/gradio_app.py"
],
"env": {
"APP_PATH": "${workspaceFolder}/tabled",
"PYDEVD_DISABLE_FILE_VALIDATION": "1",
"XDG_CACHE_HOME": "${workspaceFolder}/cache",
"HF_ENDPOINT": "http://localhost:8090"
},
"justMyCode": false
},
{
"name": "debugpy: tabled gradio offline",
"type": "debugpy",
"request": "launch",
"program": "${env:CONDA_PREFIX}/envs/tabled/bin/gradio",
"console": "integratedTerminal",
"cwd": "${workspaceFolder}",
"args": [
"${workspaceFolder}/gradio/gradio_app.py"
],
"env": {
"APP_PATH": "${workspaceFolder}/tabled",
"PYDEVD_DISABLE_FILE_VALIDATION": "1",
"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--datalab-to--surya_layout0/snapshots/421ac206a400227ea714d47a405e53ce74374957",
"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: table_app mirror",
"type": "debugpy",
Expand Down

0 comments on commit d21cd0a

Please sign in to comment.