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.