Spaces:
Build error
Build error
Update app.py
Browse files99 unmodified lines10010110210310310410510699 unmodified lines self.client = openai_client
def generate_response(self, query, docs, conv_history, selected_mode): prompt_for_gpt = f"Based on this text in angle brackets: <{docs}>, please summarize a response to this query: {query} in the context of this conversation: {conv_history}. Please use language appropriate for a {selected_mode}." prompt_for_gpt = f"Based on this text in angle brackets: <{docs}>, please summarize a response to this query: {query} in the context of this conversation: {conv_history}. Please use language appropriate for a {selected_mode}. Do not use the phrase `in the context of conversation` in your response" return get_completion(self.client, prompt_for_gpt)
def generate_response_topic(self, topic_desc, topic_text, conv_history, selected_mode):app.py+1-1