test / app.py

Commit History

  1. 🚫 Disable Content Generator Tab⁠

    Mahdi Naser Moghadasi
    8e56f3c

  1. 🔧 Fix Gradio compatibility: Remove unsupported color_mode parameter, rely on CSS overrides for light mode

    Mahdi Naser Moghadasi
    9c91697
  2. 🌞 Force light mode always: Disable dark mode even when users have Mac dark mode enabled

    Mahdi Naser Moghadasi
    bec2c19
  3. 🧠 Add intelligent document relevance checking: LLM decides if uploaded docs can answer question, mentions exact filename when using doc content

    Mahdi Naser Moghadasi
    0b4267f
  4. 🔓 Remove math-only restriction: Allow MathMind to answer any educational question, not just math

    Mahdi Naser Moghadasi
    12fde5c
  5. 📁 Simplify file management: Add multi-file upload support, remove dropdown selector, clean HTML display

    Mahdi Naser Moghadasi
    d2eb486
  6. 📁 Add comprehensive file management: Multiple PDF support, individual file removal, and document attribution in responses

    Mahdi Naser Moghadasi
    35f8f30
  7. 🧠 Upgrade PDF validation: Use LLM intelligence instead of keywords for accurate math content detection

    Mahdi Naser Moghadasi
    7837ea9

  1. 🛡️ Add safeguards: Question validation for math-only topics and enhanced PDF validation with summaries

    Mahdi Naser Moghadasi
    8b6a701
  2. ✂️ Simplify MathMind welcome message: Remove verbose feature descriptions for cleaner UI

    Mahdi Naser Moghadasi
    cbedbaf
  3. 🐛 Fix PDF upload error: Handle both file objects and bytes data properly

    Mahdi Naser Moghadasi
    027aecf
  4. 🔧 Fix LaTeX corruption: Simplify formatting function and improve API instructions for clean math expressions

    Mahdi Naser Moghadasi
    2c7d8d0
  5. 🎉 Make MathMind super interactive: Add engaging prompts, fun facts, real-world examples, and grade-appropriate humor

    Mahdi Naser Moghadasi
    792ede3
  6. ✨ Enable LaTeX rendering: Add latex_delimiters to chatbot and restore proper LaTeX formatting

    Mahdi Naser Moghadasi
    eeaf9a0
  7. 🔥 Remove all problematic LaTeX regex patterns - use only safe string replacements

    Mahdi Naser Moghadasi
    c86951d
  8. 🚑 Emergency fix: Simplify LaTeX cleanup to avoid regex escape errors

    Mahdi Naser Moghadasi
    149e3ee
  9. 🐛 Fix regex error: Use raw strings for LaTeX replacement patterns to avoid escape sequence issues

    Mahdi Naser Moghadasi
    5d79b13
  10. 🔧 Fix LaTeX rendering: Clean up malformed LaTeX patterns and improve formula display

    Mahdi Naser Moghadasi
    cf6a654
  11. Enhance MathMind chatbot: Remove repetitive introductions, add age-appropriate responses, improve LaTeX rendering, and add typing effect

    Mahdi Naser Moghadasi
    ea14373
  12. Fix TypeError: Fix pdf_context parameter handling in MathMind API call

    Mahdi Naser Moghadasi
    fb9b29b
  13. ✨ Add MathMind Interactive Math Tutor Tab⁠

    Mahdi Naser Moghadasi
    aa34ccb

  1. Fix image content preservation and reduce aggressive HTML cleaning⁠

    Mahdi Naser Moghadasi
    c32c891
  2. Fix content truncation and add dynamic token limits⁠

    Mahdi Naser Moghadasi
    7a3654e
  3. Increase max_tokens to 4000 and add debugging for content truncation⁠

    Mahdi Naser Moghadasi
    f333cd1
  4. Update image generation functions with improved error handling and performance⁠

    Mahdi Naser Moghadasi
    9cec69e
  5. Fix image display by using actual base64 data instead of placeholders⁠

    Mahdi Naser Moghadasi
    b007c47
  6. Replace base64 images with beautiful placeholders⁠

    Mahdi Naser Moghadasi
    dee9062
  7. Optimize image display for Gradio compatibility⁠

    Mahdi Naser Moghadasi
    92e2845
  8. Fix image HTML processing to preserve file path images⁠

    Mahdi Naser Moghadasi
    7a273a8
  9. Implement file-based image storage for better Gradio compatibility⁠

    Mahdi Naser Moghadasi
    ab01353
  10. Fix image dimensions for Hugging Face API compatibility⁠

    Mahdi Naser Moghadasi
    47262e1
  11. Optimize image display for better Gradio compatibility⁠

    Mahdi Naser Moghadasi
    573f36e
  12. Add debugging for image generation and display⁠

    Mahdi Naser Moghadasi
    45b4b13
  13. Fix base64 image handling and add error fallbacks⁠

    Mahdi Naser Moghadasi
    1ed7f03
  14. Fix image display issue and add comprehensive README⁠

    Mahdi Naser Moghadasi
    1d24f1f
  15. Fix malformed image HTML generation⁠

    Mahdi Naser Moghadasi
    c64d3ea
  16. Fix image display issue - stop removing valid image tags⁠

    Mahdi Naser Moghadasi
    b72a100
  17. Add detailed debug logging for image processing⁠

    Mahdi Naser Moghadasi
    2741810
  18. Add comprehensive image pattern matching and debug logging⁠

    Mahdi Naser Moghadasi
    d63fbd5
  19. Fix image generation in main app.py with working models⁠

    Mahdi Naser Moghadasi
    d965642
  20. Improve image generation with simplified Hugging Face API⁠

    Mahdi Naser Moghadasi
    9ffab0c
  21. Change content output to Markdown for better rendering⁠

    Mahdi Naser Moghadasi
    b1c7f32
  22. Fix content rendering - remove interactive elements and ensure proper text display⁠

    Mahdi Naser Moghadasi
    42b257e
  23. Fix version markers and ensure interactive content is generated correctly⁠

    Mahdi Naser Moghadasi
    436e6b3
  24. Fix HTML parsing and add version markers - ready for deployment

    Mahdi Naser Moghadasi
    370d478
  25. Add obvious markers to verify deployment - Version 2.0 with Algebra Solver

    Mahdi Naser Moghadasi
    fcb8893
  26. Add interactive algebra solver module and fix worksheet parsing⁠

    Mahdi Naser Moghadasi
    f000309
  27. Fix worksheet interactive elements and answer key visibility⁠

    Mahdi Naser Moghadasi
    7ac5e5e
  28. Revert back to original complex app structure⁠

    Mahdi Naser Moghadasi
    958b6a1
  29. Refactor to clean Gradio Blocks interface⁠

    Mahdi Naser Moghadasi
    e064d7b