Refactor app.py to enhance MCQ generation and error handling. Introduced logging for better traceability, improved file upload validation, and updated model names for consistency. Enhanced the parsing logic for MCQs and refined error management during document comparison. Overall, these changes improve code maintainability and robustness.
Fix route decorator syntax in app.py for the index function. This change ensures proper routing for the main page, enhancing the application's functionality.
Refactor app.py and dvd_evaluator.py to enhance MCQ generation and error handling. Updated the generate_mcqs_for_note function to accept an optional API key, improving flexibility for external API usage. Cleaned up import statements and removed redundant debug prints, while ensuring consistent model naming. Enhanced error management for loading criteria and improved overall code structure for better maintainability.
Enhance app.py with debugging features for MCQ generation and improve Dockerfile setup. Added debug prints for current working directory and files, along with a new debug wrapper for MCQ generation to capture errors. Updated Dockerfile to include __init__.py and set proper permissions for files, ensuring a smoother build process.
Clean up app.py by removing unnecessary whitespace and ensuring consistent formatting. This minor adjustment improves code readability without altering functionality.
Refactor app.py to improve module import handling and error reporting. Added current directory to Python path for better module accessibility. Implemented try-except block for importing dvd_evaluator, enhancing robustness by providing clear error messages and exiting gracefully on failure.
Update app.py to correct model names in token estimation and MCQ processing functions. Change model from "gpt-4o" to "gpt-4" in token estimation and from "gpt-4" to "gpt-4o-mini" in MCQ processing. This ensures consistency in model usage across the application.
Refactor app.py to enhance document comparison and MCQ generation capabilities. Introduce environment variable loading, improve file upload validation, and implement robust error handling. Update MCQ generation logic to ensure accurate parsing and response handling. Enhance overall code structure for better maintainability and clarity.
Refactor app.py to improve document comparison functionality, adding error handling for file uploads and template rendering. Introduce a new endpoint for comparing documents and generating MCQs based on their content. Update error handling for loading configuration files. Ensure the application maintains robust responses for various input scenarios.
Refactor app.py to enhance functionality with Flask, integrating document evaluation features and file upload capabilities. Update README.md to reflect changes in the technical stack and environment setup. Adjust requirements.txt for specific library versions to ensure compatibility.
Refactor app.py to integrate Gradio for Hugging Face Spaces, replacing Flask's direct handling. Update README.md to reflect new features and environment setup. Adjust requirements.txt for compatibility with updated libraries.
Enhance project configuration: Updated .gitignore to include more file types, modified Dockerfile for improved structure and environment variable handling, and revised README.md to provide comprehensive project details and usage instructions. The application now consistently listens on port 7860 across all components.