poetica / main.py

Commit History

Refactor poem generation parameters; replace PoemRequest with GenerationParams for enhanced control and validation of generation settings
6d783aa

abhisheksan commited on

Remove temperature parameter from generate_poem function call for simplified text generation
1f5f1e2

abhisheksan commited on

Update generate_poem function to use max_new_tokens for improved token control
faba267

abhisheksan commited on

Refactor PoetryGenerationService and ModelManager for improved resource efficiency; optimize model loading, implement caching, and enhance error handling
7257855

abhisheksan commited on

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

Enhance lifespan management in FastAPI by initializing PoetryGenerationService and handling model preloading asynchronously
1c1ca6d

abhisheksan commited on

Add model preloading functionality to PoetryGenerationService and initialize on startup
e47369c

abhisheksan commited on

Refactor Dockerfile and enhance main.py with Hugging Face integration
2901363

abhisheksan commited on

Add initial project structure with FastAPI and poetry generation service
cee4b22

abhisheksan commited on