Refactor TranslationRunManager to use RLock for thread safety and enhance segment handling in the frontend. Updated methods to acquire locks during run retrieval and updates, ensuring data integrity. Improved UI to display segment statuses and outcomes, including a new segment panel for better user experience. Added CSS styles for segment display and updated HTML structure to accommodate the new segment features.
Add Google Drive file download functionality. Implemented a new module to extract file IDs from Google Drive links and download publicly shared files. Updated the frontend to allow users to input a Drive link alongside file uploads, with appropriate validation and error handling for both methods. Enhanced UI to indicate the option to use either a file or a Drive link for video translation.
Add video segment compression for Replicate uploads. Implemented logic to prepare segments for upload, ensuring they meet the 100 MiB file size limit. Added functionality to compress segments exceeding the limit and updated upload handling to use the prepared segments.
Refactor error handling and logging in main application logic. Updated segment failure summarization to return unique errors and improved logging format to ensure proper line breaks. Enhanced frontend error messaging to handle multiple segment errors more effectively and maintain user experience.
Enhance video upload handling and error messaging. Updated Dockerfile to use gthread for improved performance with large uploads. Added progress tracking for video uploads in the frontend, with error handling for insufficient credits and file size limits. Improved error messages for failed segments and added a user-friendly upload progress indicator in the UI.