1. 11 Jun, 2025 2 commits
  2. 10 Jun, 2025 2 commits
  3. 27 May, 2025 1 commit
  4. 08 May, 2025 1 commit
  5. 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
  6. 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
  7. 23 Apr, 2025 1 commit
  8. 21 Apr, 2025 1 commit
  9. 10 Apr, 2025 1 commit
  10. 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
  11. 21 Mar, 2025 1 commit
  12. 14 Mar, 2025 2 commits
  13. 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
  14. 14 Feb, 2025 8 commits
  15. 22 Jan, 2025 1 commit
  16. 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
  17. 13 Jan, 2025 2 commits
  18. 12 Jan, 2025 1 commit
  19. 10 Jan, 2025 2 commits
  20. 09 Jan, 2025 4 commits
  21. 07 Jan, 2025 1 commit
    • myhloli's avatar
      fix(clear_bu): remove unused input from clear button · e3d2de37
      myhloli authored
      Remove 'table_enable' input from the clear button's function call. This change ensures that only necessary inputs are included in the clear operation, improving code efficiency and maintainability.
      e3d2de37
  22. 06 Jan, 2025 1 commit
  23. 05 Jan, 2025 1 commit
    • myhloli's avatar
      fix(magic-pdf): update OCR model selection logic · 16a0a350
      myhloli authored
      - Add missing 'else' statement in OCR model selection logic
      - Ensure consistent formatting of 'if' statements for better readability
      - Remove unnecessary empty line in the 'app.py' file
      16a0a350
  24. 03 Jan, 2025 1 commit
  25. 18 Dec, 2024 1 commit
    • myhloli's avatar
      feat(gradio-app): improve PDF conversion and UI functionalities · bf2ff5a2
      myhloli authored
      - Add automatic conversion of uploaded files to PDF
      - Update max page slider range and default value- Prevent interaction with PDF preview to avoid errors
      - Increase Markdown rendering height for better visibility
      - Update file change event handling for PDF conversion
      - Modify supported image suffixes for file upload
      bf2ff5a2