Spaces:
Sleeping
Sleeping
Update app.py
Browse files209 unmodified lines210211212213214215216217209 unmodified linesreturn str(n) # EXACT MATCH wants bare number# Deterministic LLM fallback constrained to description onlyyt_sys = ("Return ONLY the number (digits only, no words, no punctuation). ""Count the distinct bird species explicitly mentioned in the official video description.")raw = self._llm(f"{yt_sys}\n\nQuestion: {question}")num = _extract_bare_number(raw)209 unmodified lines210211212213214215216217209 unmodified linesreturn str(n) # EXACT MATCH wants bare number# Deterministic LLM fallback constrained to description onlyyt_sys = ("Answer with ONLY the final number. Use only the official video description text. ""Count distinct bird species explicitly mentioned (e.g., Emperor penguin, Adélie penguin, Giant petrel).")raw = self._llm(f"{yt_sys}\n\nQuestion: {question}")num = _extract_bare_number(raw)
app.py+2-2