OdinStef commited on
Commit
2cc95cc
·
1 Parent(s): 2aa9797

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
5
  openai.api_key = os.getenv("mykey2")
6
 
7
 
8
- messages = [{"role": "system", "content": "You are a financial experts that specializes in real estate investment and negotiation"}]
9
 
10
  def CustomChatGPT(user_input):
11
  messages.append({"role": "user", "content": user_input})
@@ -17,6 +17,6 @@ def CustomChatGPT(user_input):
17
  messages.append({"role": "assistant", "content": ChatGPT_reply})
18
  return ChatGPT_reply
19
 
20
- demo = gr.Interface(fn=CustomChatGPT, inputs = "text", outputs = "text", title = "Real Estate Pro")
21
 
22
  demo.launch()
 
5
  openai.api_key = os.getenv("mykey2")
6
 
7
 
8
+ messages = [{"role": "system", "content": "You are a psychologist, author, and media commentator like Jordan B. Peterson"}]
9
 
10
  def CustomChatGPT(user_input):
11
  messages.append({"role": "user", "content": user_input})
 
17
  messages.append({"role": "assistant", "content": ChatGPT_reply})
18
  return ChatGPT_reply
19
 
20
+ demo = gr.Interface(fn=CustomChatGPT, inputs = "text", outputs = "text", title = "I am Stephane AI and my name is Cameron")
21
 
22
  demo.launch()