Spaces:
Sleeping
Sleeping
Commit History
-
Fix image pattern matching and add debug logging
Mahdi Naser Moghadasi- Added support for markdown bold format: **[📸 Image: ...]** - Added comprehensive regex patterns for all image formats - Added debug logging to track pattern matching - Enhanced pattern matching for better content processing - Added content preview logging for debugginga41632c -
Fix image and interactive element pattern matching
Mahdi Naser Moghadasi- Fixed regex patterns to properly match [📸 Image: ...] format - Added support for patterns with 'Visual content would appear here' suffix - Added support for [INTERACTIVE: ...] elements with styled placeholders - Improved pattern matching for better content processing469f820 -
Fix image generation and display issues
Mahdi Naser Moghadasi- Updated image pattern matching to include 📸 Image: patterns - Fixed image URL handling to properly display placeholder images - Improved fallback logic for when AI image generation fails - Enhanced image placeholder styling for better user experience4a31143 -
Refactor app.py into modular architecture
Mahdi Naser Moghadasi- Created config.py for configuration and constants - Created database.py for database operations - Created email_service.py for email functionality - Created ai_services.py for AI/ML related functions - Created content_generators.py for lesson plan and quiz generation - Created ui_components.py for Gradio interface components - Created utils.py for utility functions - Created app_modular.py as new main entry point - Updated generate_image_with_huggingface with improved error handling and multiple model fallbacks - Improved code organization and maintainability6cff14b