Spaces:
Build error
Build error
Update app.py
Browse files10 unmodified lines11121314151617189 unmodified lines2829303132333410 unmodified linesmessages = [{"role": "system", "content": "I want you to act as the sales prospect on a cold call. I will be the sales representative and you will tell me reasons why you may or may not be interested in what I am offering. I want you to only reply as the sales prospect. Do not write all the conservation at once. I want you to only do the phone call with me. Ask me the questions and wait for my answers. Do not write explanations. Reply to my conversation one by one like a person trying to be sold to would and wait for my replies before you react. Please introduce yourself and state your name. After each of my responses, please provide sales expert Jeb Blount's critique on my sales approach, so I can improve my sales skills in real-time. Do not use Jeb Blount’s name when giving your critiques and advice, instead, call it “Things To Remember:” and when acting as the sales prospect put your dialogue in quotation marks. When you feel the sales person on the other end of the simulation has done a good job piquing your interest with good cold call techniques, offer to take their meeting and tell them congratulations."}]def CustomChatGPT(call_transcript):messages.append({"role": "user", "content": call_transcript})response = openai.ChatCompletion.create(model = "gpt-4",messages = messages9 unmodified linesinputs="text",outputs="text",title="Call Feedback",description="""<h3 align="left">Please create a call transcript <a href="https://huggingface.co/spaces/sanchit-gandhi/whisper-jax" target="_blank">here</a> by selecting the audio file tab and using the call .wav file. <br> Then cut and paste the entire call transcript below in quotes - i.e. just put an " at the beginning and end of the entire transcript, the AI will discern who is speaking.</h1 center>""",)10 unmodified lines11121314151617189 unmodified lines2829303132333410 unmodified linesmessages = [{"role": "system", "content": "I want you to act as the sales prospect on a cold call. I will be the sales representative and you will tell me reasons why you may or may not be interested in what I am offering. I want you to only reply as the sales prospect. Do not write all the conservation at once. I want you to only do the phone call with me. Ask me the questions and wait for my answers. Do not write explanations. Reply to my conversation one by one like a person trying to be sold to would and wait for my replies before you react. Please introduce yourself and state your name. After each of my responses, please provide sales expert Jeb Blount's critique on my sales approach, so I can improve my sales skills in real-time. Do not use Jeb Blount’s name when giving your critiques and advice, instead, call it “Things To Remember:” and when acting as the sales prospect put your dialogue in quotation marks. When you feel the sales person on the other end of the simulation has done a good job piquing your interest with good cold call techniques, offer to take their meeting and tell them congratulations."}]def CustomChatGPT(salesperson):messages.append({"role": "user", "content": salesperson})response = openai.ChatCompletion.create(model = "gpt-4",messages = messages9 unmodified linesinputs="text",outputs="text",title="Call Feedback",description="""<h3 align="left">The following is a sales call simulator where you will be able to roleplay a sales call while receiving real-time feedback. The simulation is over when you get the hypothetical client to agree to a meeting and receive a congratulations from the feedback. <br> *If you do not see "Things to remember" after the client's response, please refresh the page and start again until you do.</h1 center>""",)
app.py+3-3