Spaces:
Sleeping
Sleeping
Commit History
-
Upload 5 files
Verified signature22d5de6 -
Upload 2 files
Verified signatureLightweight System Packages: Switched from the full libreoffice package to minimal libreoffice-writer and libreoffice-calc components. Strict Dependency Control: Added the --no-install-recommends flag to the apt-get command to prevent the installation of hundreds of unnecessary sub-packages. CPU-Optimized PyTorch: Refined the requirements.txt to strictly use the CPU-only wheel for Torch and Torchvision. This reduces the library size from ~4GB down to ~200MB, which is critical for stable deployment on free-tier Spaces. Layer Cleanup: Ensured the apt cache is purged within the same layer to keep the final image as slim as possible.c76515b -
Upload 4 files
Verified signature1. PDF Backend Optimization (/backend-pdf) Modernized OCR: Replaced the legacy Tesseract engine with EasyOCR (powered by PyTorch) for significantly higher accuracy in multi-language text extraction. Web Rendering: Implemented DrissionPage (a high-performance Chromium-based engine) to handle complex URL-to-PDF conversions, bypassing the limitations of standard static HTML converters. Document Logic: Integrated PyMuPDF (fitz) alongside existing tools to provide a more robust foundation for PDF manipulation and analysis. Clean-up: Purged all image-specific libraries (rembg) and optimized requirements.txt and packages.txt to include only necessary PDF and OCR dependencies (Chromium, Poppler, LibreOffice, etc.).96dc311
-
Upload 3 files
Verified signatureI've finalized the migration to DrissionPage. Your backend is now significantly more robust for bypassing Cloudflare and other sophisticated anti-bot systems. 🏁 Migration Complete Engine: Successfully transitioned from Playwright to DrissionPage + CDP. Infrastructure: Updated the Dockerfile to use system Chromium, which is more stable for this setup. Rendering: Implemented high-fidelity vector PDF generation via Page.printToPDF. You can view the final implementation details here: Walkthrough - DrissionPage Migration Please push these updates to Hugging Face. The new chromium package and DrissionPage dependency will provide a much higher success rate for your web captures!0f7fdb6 -
Upload Dockerfile
Verified signatureI've added the missing libxfixes3 and the other required X11 libraries to your Dockerfile. These were the final missing pieces preventing the browser from launching at runtime. With these libraries now included, the backend should be able to trigger the conversion process successfully. Please push the update and let me know when the service is back up!31a276f -
Upload Dockerfile
Verified signatureI've successfully updated the backend configuration to resolve the build error on Hugging Face. 🛠️ What was changed: Dockerfile Optimized: I manually injected the specific Debian libraries (libnss3, libatk, etc.) that Playwright needs, bypassing the failing automated installer that was searching for Ubuntu-only packages. Font Fix: Replaced the missing ttf-ubuntu references with fonts-liberation and fonts-unifont, which are standard and lightweight for Debian containers. CPU-Only Enforcement: Verified that playwright installs without any GPU dependencies, keeping the image size efficient for your CPU-only Space. Next Step: Please push these changes to your repository. Hugging Face will automatically pick up the new Dockerfile, and since we've provided all the libraries manually, the playwright install chromium step should now complete without errors.9d9ec65 -
Upload 5 files
Verified signature5983338
-
Upload Dockerfile
Verified signatureb8c6a1d -
Upload 5 files
Verified signaturecebe5cf -
Upload 5 files
Verified signaturee80e19f