Refactor contribution handling to read file content directly as bytes instead of BinaryIO, improving file processing in contributions.py and hf_repo.py.
Add voting functionality to app.py: Implemented a new route to handle user votes via a POST request, including JSON validation and error handling. Updated config.py to include paths for votes, and enhanced hf_repo.py with functions to commit vote updates. Modified webhooks.py to create missing votes files during indexation.
Refactor and modularize codebase: Split app.py into multiple files for better organization, including config.py for constants and logging, global_index.py for index management, hf_repo.py for Hugging Face API interactions, holds.py for metadata handling, and webhooks.py for webhook server functionality. This enhances maintainability and clarity of the code structure.
Implement legacy support for global index loading in app.py: Added a new function to handle loading from both current and legacy paths, improving error handling and logging for index retrieval.
Refactor app.py: Introduced metadata normalization, added support for training data generation, and updated global index handling. Enhanced commit operations for dataset updates.
Enhance .gitignore and app.py: Added support for additional mesh formats, introduced status references in allowed references, and improved validation for status metadata.