1. 04 Jul, 2025 5 commits
  2. 30 Jun, 2025 1 commit
  3. 18 Jun, 2025 3 commits
  4. 13 Jun, 2025 3 commits
  5. 11 Jun, 2025 2 commits
  6. 10 Jun, 2025 2 commits
  7. 09 Jun, 2025 1 commit
  8. 05 Jun, 2025 1 commit
  9. 27 May, 2025 1 commit
  10. 08 May, 2025 1 commit
  11. 30 Apr, 2025 1 commit
    • Wang Yubo's avatar
      Update app.py: Fix parameter parsing in /file_parse endpoint · 862891e2
      Wang Yubo authored
      I have updated the `/file_parse` endpoint in `app.py` to correctly handle boolean and string parameters when they are sent via `multipart/form-data` requests (commonly used for file uploads). Previously, these parameters were not being properly parsed because FastAPI expects them to be passed as query or JSON body parameters by default.
      
      ### Changes Made:
      - Added `Form(...)` to all non-file parameters (`parse_method`, `is_json_md_dump`, `output_dir`, and return flags like `return_layout`, etc.).
      - This ensures that FastAPI correctly reads these fields from form-data, allowing clients to send both files and structured configuration options in the same request.
      
      ### Why This Change Was Needed:
      - When using `requests.post(..., data=data, files=files)`, the `data` dictionary is sent as form-encoded data.
      - Without explicitly declaring these fields with `Form(...)`, FastAPI does not bind them correctly, leading to default values always being used (e.g., `False` for boolean flags).
      - This change allows the API to accurately reflect the client's intent and enables features like `return_layout`, `return_images`, etc., to work as expected.
      
      This update improves compatibility with HTTP clients that rely on standard form-based file upload mechanisms while preserving the existing behavior of the API.
      862891e2
  12. 28 Apr, 2025 1 commit
    • myhloli's avatar
      feat(latex): enhance LaTeX delimiter support and configurability · 100e9c17
      myhloli authored
      - Add support for \(\) and \[\] delimiters in addition to $$ and $$- Make LaTeX delimiter configuration more flexible and user-defined
      - Update configuration file to include LaTeX delimiter settings
      - Modify OCR content generation to use configurable delimiters
      100e9c17
  13. 23 Apr, 2025 1 commit
  14. 21 Apr, 2025 1 commit
  15. 10 Apr, 2025 1 commit
  16. 03 Apr, 2025 1 commit
    • myhloli's avatar
      feat(web_api): update configuration and remove unused code · 3a820305
      myhloli authored
      - Comment out PaddlePaddle GPU installation in Dockerfile
      - Add OCR model download URL in download_models.py
      - Update config version in magic-pdf.json
      - Remove outdated information and simplify README.md
      - Remove volume creation for PaddleOCR models in Dockerfile
      3a820305
  17. 21 Mar, 2025 1 commit
  18. 14 Mar, 2025 2 commits
  19. 22 Feb, 2025 1 commit
    • sayThQ199's avatar
      Update ext.py · 034034c6
      sayThQ199 authored
      Determine whether the file name with a.pdf extension supports the inclusion of special characters or Chinese characters.
      034034c6
  20. 14 Feb, 2025 8 commits
  21. 22 Jan, 2025 1 commit
  22. 21 Jan, 2025 1 commit
    • myhloli's avatar
      fix(models): update unimernet_small model path · 2a3a006f
      myhloli authored
      - Update model path from 'unimernet_small' to 'unimernet_small_2501' in multiple scripts and configuration files
      - This change affects download_models.py, download_models_hf.py, and model_configs.yaml
      2a3a006f