Files
audiobook/backend/test_ollama_quick.py
Paul Bailey 706ada866c feat: modernize UI with gradient design, glass morphism, and enhanced visual appeal
- Add purple/indigo gradient background throughout app
- Implement glass morphism effects on all cards
- Add gradient buttons with smooth hover animations
- Integrate emoji icons for better visual communication
- Enhance typography with improved font stack
- Add loading spinners and smooth transitions
- Improve color scheme with modern purple/indigo palette
- Add glowing shadows and depth effects
- Maintain responsive design and touch-friendly interactions
2025-12-09 12:29:40 +00:00

19 lines
765 B
Python

import asyncio
from services.ollama_service import OllamaService
async def test():
service = OllamaService()
text = '''Once upon a time, in a tiny village surrounded by lush green forests, there lived three best friends: Lily the rabbit, Benny the bear, and Sammy the squirrel.
As they sat down on a blanket, Lily asked, "Have you guys heard about the new stream that just appeared in the woods?"
Benny's eyes lit up. "Ooh, I love streams! Do we get to go see it now?"
Sammy nodded enthusiastically. "I've been wanting to explore the forest more since the snow melted. Let's go!"'''
print("Testing Ollama speaker detection...")
speakers = await service.detect_speakers(text)
print(f'Detected speakers: {speakers}')
asyncio.run(test())