Spaces:
Sleeping
Sleeping
File size: 967 Bytes
408b7e6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | class ContentService:
def get_prompt_by_level(self, level, region="AU_VIC"):
# Calibration of text length for optimal 30-60 second biometric sample
prompts = {
"beginner": {
"text": "The cat sat on the mat. The sun is hot. I like to run and play in the green grass.",
"complexity": "Low"
},
"intermediate": {
"text": "The quick brown fox jumps over the lazy dog. Bright stars shine in the deep blue sky. Small birds sing sweet songs in the morning sun.",
"complexity": "Medium"
},
"advanced": {
"text": "A shimmering silver moon rose over the silent mountains. The adventurous explorer discovered a hidden valley filled with ancient secrets.",
"complexity": "High"
}
}
return prompts.get(level.lower(), prompts["intermediate"])
content_service = ContentService() |