Spaces:
Build error
Build error
Update app.py (#1)
Browse files- Update app.py (5a7860234c38ff343c452ee0db3977952171f265)
Co-authored-by: Russel Brunton <LeavingLasVegas@users.noreply.huggingface.co>
86 unmodified lines87888990919286 unmodified linesmatches_text = self.query_vector_store(user_query_plus_conversation, query_topic, index)if head_agent.relevant_documents_agent.is_relevant(matches_text, user_query_plus_conversation) or contains_py_filename(matches_text):response = head_agent.answering_agent.generate_response(user_query, matches_text, conversation, head_agent.selected_mode)else:prompt_for_gpt = f"Return a response to this query: {user_query} in the context of this conversation: {conversation}. Please use language appropriate for a {head_agent.selected_mode}."86 unmodified lines878889909192939486 unmodified linesmatches_text = self.query_vector_store(user_query_plus_conversation, query_topic, index)if head_agent.relevant_documents_agent.is_relevant(matches_text, user_query_plus_conversation) or contains_py_filename(matches_text):if query_topic == 'python':user_query = user_query + " Please use Python Code in your response."response = head_agent.answering_agent.generate_response(user_query, matches_text, conversation, head_agent.selected_mode)else:prompt_for_gpt = f"Return a response to this query: {user_query} in the context of this conversation: {conversation}. Please use language appropriate for a {head_agent.selected_mode}."
app.py+2