mail_bot / model_loader.py

Commit History

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

    32e01fc
  2. Fix syntax error - add missing commas before token parameter

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

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

    8711360
  5. Refactor email handling and model inference.

    f814c93

  1. Fix syntax error: Add newline after decorator

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

    Verified signature
    3b05d0c

  1. 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. Fix syntax error: remove extra quote in device_map parameter

    Verified signature
    fd0429d
  12. Configure model_loader for ZeroGPU compatibility

    Verified signature
    524cd22
  13. Add initial application structure with email handling and database integration.

    cb51934