Spaces:
Sleeping
Sleeping
Update app.py
Browse files174 unmodified lines175176177178179180181182183184185174 unmodified lines# Вызываем агента с префиксомtry:raw = agent.invoke(system_prefix + "" + input_text) # use invoke to avoid unsupported stop parameterexcept Exception:raw = agent.invoke(system_prefix + "" + q)# Убираем заглушки YouTubeif isinstance(raw, str) and raw.startswith("ERROR: YouTube"):174 unmodified lines175176177178179180181182183174 unmodified lines# Вызываем агента с префиксомtry:raw = agent.invoke(system_prefix + "\n" + input_text) # use invoke to avoid unsupported stop parameterexcept Exception:raw = agent.invoke(system_prefix + "\n" + q)# Убираем заглушки YouTubeif isinstance(raw, str) and raw.startswith("ERROR: YouTube"):
app.py+2-4