79325664

Date: 2025-01-03 06:37:01
Score: 1
Natty:
Report link

The issue is that I'm using dotenv to pass in the max_length value. os.environ.get returns a str not an int, regardless of what's in the .env file. I just needed to cast it to an int instead

hf_max_length = int(os.environ.get('HF_MAX_LENGTH', 512))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: kurtfoster