launch.json 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. {
  2. // 使用 IntelliSense 了解相关属性。
  3. // 悬停以查看现有属性的描述。
  4. // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [
  7. {
  8. "name": "current_file",
  9. "type": "debugpy",
  10. "request": "launch",
  11. "program": "${file}",
  12. "console": "integratedTerminal",
  13. "cwd": "${fileDirname}",
  14. "env": {"PYTHONPATH":"${workspaceFolder};${env:PYTHONPATH}"},
  15. "envFile": "${workspaceFolder}/.env",
  16. // "args": ["-t", "How can I push a model to the Hub?", "-b", "dashscope", "-m", "openai/qwen-max", "-a", "code"],
  17. "justMyCode": false
  18. },
  19. {
  20. "name": "streamlit_ocr_validator",
  21. "type": "debugpy",
  22. "request": "launch",
  23. // "program": "${file}",
  24. "module": "streamlit",
  25. "console": "integratedTerminal",
  26. "cwd": "${workspaceFolder}",
  27. "env": {"PYTHONPATH":"${workspaceFolder};${env:PYTHONPATH}"},
  28. "envFile": "${workspaceFolder}/.env",
  29. "args": [
  30. "run", "streamlit_ocr_validator.py",
  31. "--theme.base=light"
  32. ],
  33. "justMyCode": false
  34. }
  35. ]
  36. }