Spaces:
Runtime error
Runtime error
Update app.py
Browse files10 unmodified lines1112131415141516171810 unmodified lines
messages = [{"role": "system", "content": "Below is a transcript of a call, when critiquing, please attempt to understand who the salesperson and prospect are when analyzing this transcript but do not present the transcript back to me unless you are pulling a specific quote for further instruction. Ignore any spelling issues or errors as this is a transcript that may not be 100% accurate. Do your best to fill in the gaps and error on the side of the salesperson for any potential critiques. Then act as cold call sales expert Jeb Blount and give a detailed analysis and critique of this call. Do not contextualize who you are in the beginning. Do not say I. Do not say sales expert. Do not say Jeff Blount. Begin with a quick analysis of the call. Then make sure to list strengths as well as areas that use improvement and call the areas that could use improvement as potential things to consider. End with a complimentary closing that summarizes the analysis and gives a hopeful outlook on the future but don’t say or title it as a complimentary closing. Do not analyze any holds, transfers, or waiting periods before the call with the prospect and the salesperson starts."}]
def CustomChatGPT(user_input): messages.append({"role": "user", "content": user_input})def CustomChatGPT(call_transcript): messages.append({"role": "user", "content": call_transcript}) response = openai.ChatCompletion.create( model = "gpt-4", messages = messagesapp.py+2-2