1. 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
  2. 21 Apr, 2025 1 commit
  3. 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
  4. 21 Mar, 2025 1 commit
  5. 14 Mar, 2025 2 commits
  6. 14 Feb, 2025 8 commits
  7. 03 Jan, 2025 1 commit
  8. 12 Dec, 2024 1 commit
  9. 24 Nov, 2024 1 commit
  10. 29 Oct, 2024 1 commit
    • myhloli's avatar
      (docs&build): switch to Aliyun PyPI mirror · 4c412b28
      myhloli authored
      - Update PyPI mirror from Tsinghua to Aliyun in multiple Dockerfiles and installation scripts
      - This change may improve package download speed and reliability for users in China
      4c412b28
  11. 27 Sep, 2024 1 commit
    • myhloli's avatar
      docs: update project lists in README files to include web_api · 39873969
      myhloli authored
      Add the web_api project to the lists of projects in both the English and Chinese
      README.md files, providing a brief description and linking to the project's
      documentation. Ensure that the formatting and style are consistent with the
      existing project entries.
      39873969
  12. 25 Sep, 2024 2 commits
  13. 20 Sep, 2024 1 commit
  14. 10 Sep, 2024 1 commit
  15. 09 Sep, 2024 2 commits
  16. 05 Sep, 2024 2 commits