Commit History

  1. Fix tuple error - return only formatted_text from app_handle

    Verified signature
    22a4d65

  1. fixed initialization error

    Verified signature
    921230a
  2. updated the output formatting

    Verified signature
    0571312
  3. updated formatting

    Verified signature
    704a8c1
  4. Fix format_response_text indentation - all indentation errors resolved

    Verified signature
    3a636a2
  5. Fix indentation errors - use consistent 4-space indentation

    Verified signature
    848900c
  6. Update app.py

    Verified signature
    a5484dc
  7. Update app.py

    Verified signature
    37ab447
  8. Add formatted response and remove mail type dropdown - let model auto-classify

    Verified signature
    a1745ba
  9. Remove queue parameters from demo launch in app.py for simplified execution.

    1f028c7
  10. Update BASE_MODEL in model_loader.py to correct model path

    32e01fc
  11. Merge branch 'main' of hf.co:spaces/iatechaways/mail_bot

    dcf17b8
  12. Update .gitignore to include .env file for environment variable management

    93905e0
  13. Fix syntax error - add missing commas before token parameter

    Verified signature
    29e5c2f
  14. Add HF_TOKEN authentication for gated model access

    Verified signature
    007c634
  15. Update .gitignore to include __pycache__ and change BASE_MODEL version in model_loader.py to 3.2-3B

    8711360
  16. Refactor email handling and model inference.

    f814c93
  17. Update requirements.txt: Modify dependencies to ensure compatibility with recent changes

    7061cba

  1. Fix IndentationError: Correct indentation for email conversion code

    Verified signature
    bfdcd02
  2. Fix SyntaxError: Add proper indentation to email conversion code (lines 89-93)

    Verified signature
    1d2cb8b
  3. Fix SyntaxError: Move email conversion code inside try block before return

    Verified signature
    94bddb3
  4. Convert JSON output to email format: Change output from JSON to proper email text format

    Verified signature
    fe42c82
  5. Fix syntax error: Add newline after decorator

    Verified signature
    94b6049
  6. Fix ZeroGPU timeout: Add duration parameter and optimize device mapping

    Verified signature
    3b05d0c

  1. Add comprehensive error handling and debug logging

    Verified signature
    bbeb47e
  2. Remove debug print statements with indentation issues

    Verified signature
    b2cfdd4
  3. Update app.py

    Verified signature
    0db9bc6
  4. Add debug logging to print extracted policy number in app.py

    Verified signature
    c809e63
  5. Add database connection testing and debug logging for policy number queries

    Verified signature
    cb5b0e4
  6. Clean policy number input in fetch_client_info_by_policy function to ensure consistent formatting before database query.

    3d9ed25
  7. Enhance email processing in app.py by adding policy number extraction and a new database function to fetch client info by policy. Update logic to handle cases where client_id is not available, improving response accuracy.

    2231cf4
  8. Enhance email handling in app.py: classify emails, generate responses with initial model output, and fetch client data from the database for improved response accuracy.

    6788d4b
  9. Refactor get_model_response function to enhance JSON response generation with structured prompts and improved error handling.

    adf7dca

  1. Fix indentation errors in model_loader.py

    Verified signature
    33dcaf6
  2. Fix indentation error: add missing if statement on line 56

    Verified signature
    3ae579c
  3. Aggressive optimization: reduce max_new_tokens to 64 for faster ZeroGPU processing

    Verified signature
    9a57d4f
  4. Remove problematic line 56 that caused indentation error

    Verified signature
    e14e451
  5. Fix indentation error on line 56

    Verified signature
    9ce61ce
  6. Optimize inference: reduce tokens to 256 and temperature to 0.1 for faster processing

    Verified signature
    b8c2b9a
  7. Increase max_new_tokens to 512 to handle long complex emails

    Verified signature
    4c47bc8
  8. Extract only JSON object by matching braces, ignore extra text

    Verified signature
    62edf48
  9. Extract JSON from model output by removing prompt text

    Verified signature
    96b5da4
  10. Fix pipeline result extraction: add ['generated_text'] to access output

    Verified signature
    9fa88d6
  11. Update PEFT to >=0.14.0 to fix LoraConfig corda_config error

    Verified signature
    03f8a5f
  12. Fix syntax error: remove extra quote in device_map parameter

    Verified signature
    fd0429d
  13. Update PyTorch to 2.5.1 for ZeroGPU compatibility

    Verified signature
    3eb2300
  14. Configure model_loader for ZeroGPU compatibility

    Verified signature
    524cd22
  15. Fix syntax error: Remove misplaced @spaces.GPU decorator

    Verified signature
    a242754
  16. Add GPU support for model processing in the application.

    9fd2acf
  17. Add initial application structure with email handling and database integration.

    cb51934