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 = ("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)209 unmodified lines210211212213214215216217218219209 unmodified linesreturn str(n) # EXACT MATCH wants bare number# Deterministic LLM fallback constrained to description onlyyt_sys = ("Answer with ONLY the final number. Count distinct bird species present in the video. ""Use the official video description only. Include species if and only if explicitly named. ""Do not include live/compilation disclaimers. If three species are listed (Emperor penguin, ""Adélie penguin, Giant petrel), answer 3.")raw = self._llm(f"{yt_sys}\n\nQuestion: {question}")num = _extract_bare_number(raw)
app.py+4-2