poetica / app /services /poetry_generation.py

Commit History

Optimize model loading and error handling in PoetryGenerationService; implement async poem generation and enhance application startup process
6dbb459

abhisheksan commited on

Improve model preloading in PoetryGenerationService with meaningful return value and enhanced error handling
abc61cb

abhisheksan commited on

Refactor PoetryGenerationService to streamline model initialization and improve error handling
f55cd01

abhisheksan commited on

Refactor model loading to use a consistent model name variable in PoetryGenerationService
51ed73b

abhisheksan commited on

Fix variable name for model loading in PoetryGenerationService
34aad78

abhisheksan commited on

Add model preloading functionality to PoetryGenerationService and initialize on startup
e47369c

abhisheksan commited on

Update model name in ModelManager to Llama-3.2-1B-Instruct
5118191

abhisheksan commited on

Remove optimized module usage from poetry generation service
7b5bffa

abhisheksan commited on

Update model name in ModelManager to use Llama-1B-Instruct for improved performance
32aea62

abhisheksan commited on

Enhance ModelManager and PoetryGenerationService with optimizations and new features
6feef58

abhisheksan commited on

Fix initialization check in ModelManager to use class variable for singleton pattern
af80dec

abhisheksan commited on

Refactor poetry generation to use singleton ModelManager for model and tokenizer initialization
2e998d1

abhisheksan commited on

Set tokenizer's pad token to end-of-sequence token for improved handling
7e19fc6

abhisheksan commited on

Add initial project structure with FastAPI and poetry generation service
cee4b22

abhisheksan commited on