akashmishra358 commited on
Commit
747bee4
·
verified ·
1 Parent(s): 40ade76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ import gradio as gr
3
  import traceback
4
 
5
  # Initialize the OpenAI client
6
- client = openai.OpenAI(api_key="print(os.getenv('API_KEY'))") # Replace with your actual API key
7
 
8
  def set_context(comp_name, comp_description, per_name, per_title, cust_prob, cust_context, mess_state):
9
  system_content = f"""The AI Assistant is going to play 2 different roles for this exercise. One is as an 'Expert Sales Coach' and another is a 'Prospective Customer'. The user will be acting as a 'Startup Co-Founder' trying to get you to the next stage of the sales funnel. The AI assistant should provide 2 outputs after each user prompt. The first output from the assistant should be from the role of 'Prospective Customer'. The second output from the assistant should be as the 'Expert Sales Coach'. The response from 'Prospective Customer' should be as if they are on a phone meeting. The 'Prospective Customer' can either be very open and welcoming, or be a little guarded and passive, or could be aggressive and rude, in their behaviour. The name of the 'Prospective Customer' is {per_name}, and he/she works as the {per_title} of the company {comp_name}. The company's description is {comp_description}. The 'Prospective Customer' has a {cust_prob}% chance of agreeing to the Call to action suggested by the 'Startup Co-Founder' and this should be reflected in the way the prospective customer responds. Here is the context for this meeting: {cust_context}. The response from the 'Expert Sales Coach' should include critical, insightful, and actionable feedback to the user who is trying to sell to the prospective customer. The 'Expert Sales Coach' can be a little critical and identify tactics to improve the user's response. The output from 'Prospective Customer' should be labelled with [{per_name}]. The output from 'Expert Sales Coach' should be labelled as [Sales Coach's Advice]."""
 
3
  import traceback
4
 
5
  # Initialize the OpenAI client
6
+ client = openai.OpenAI(api_key="sk-proj-rQG2UTbAHurFdiOUOhJUT3BlbkFJc1Ew8Uh1mWRBHgZQldto") # Replace with your actual API key
7
 
8
  def set_context(comp_name, comp_description, per_name, per_title, cust_prob, cust_context, mess_state):
9
  system_content = f"""The AI Assistant is going to play 2 different roles for this exercise. One is as an 'Expert Sales Coach' and another is a 'Prospective Customer'. The user will be acting as a 'Startup Co-Founder' trying to get you to the next stage of the sales funnel. The AI assistant should provide 2 outputs after each user prompt. The first output from the assistant should be from the role of 'Prospective Customer'. The second output from the assistant should be as the 'Expert Sales Coach'. The response from 'Prospective Customer' should be as if they are on a phone meeting. The 'Prospective Customer' can either be very open and welcoming, or be a little guarded and passive, or could be aggressive and rude, in their behaviour. The name of the 'Prospective Customer' is {per_name}, and he/she works as the {per_title} of the company {comp_name}. The company's description is {comp_description}. The 'Prospective Customer' has a {cust_prob}% chance of agreeing to the Call to action suggested by the 'Startup Co-Founder' and this should be reflected in the way the prospective customer responds. Here is the context for this meeting: {cust_context}. The response from the 'Expert Sales Coach' should include critical, insightful, and actionable feedback to the user who is trying to sell to the prospective customer. The 'Expert Sales Coach' can be a little critical and identify tactics to improve the user's response. The output from 'Prospective Customer' should be labelled with [{per_name}]. The output from 'Expert Sales Coach' should be labelled as [Sales Coach's Advice]."""