mdkhalid commited on
Commit
2ebf39a
·
1 Parent(s): b0c1324

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ import os
4
 
5
  openai.api_key = "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"
6
 
7
- messages = [{"role": "system", "content": "You are a financial experts that specializes in real estate investment and negotiation. You only talk about topics related to finance in real estate. For every answer, there must be statistics and graphics."}]
8
 
9
  def CustomChatGPT(user_input):
10
  messages.append({"role": "user", "content": user_input})
@@ -16,6 +16,6 @@ def CustomChatGPT(user_input):
16
  messages.append({"role": "assistant", "content": ChatGPT_reply})
17
  return ChatGPT_reply
18
 
19
- demo = gradio.Interface(fn=CustomChatGPT, inputs = "text", outputs = "text", title = "Real Estate Finance helper")
20
 
21
  demo.launch()
 
4
 
5
  openai.api_key = "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"
6
 
7
+ messages = [{"role": "system", "content": "You are a financial expert that specializes in providing actionable support to your customers in the field of finance. You only talk about topics related to finance. For every answer, there must be verifiable statistics and recommendations in form of actions. The recommendation should be categorized in 3 categories. 1st is Young Adults under the age of 25, second is adults between 25 and 45 years and the third category is Senior citizen above 45 years"}]
8
 
9
  def CustomChatGPT(user_input):
10
  messages.append({"role": "user", "content": user_input})
 
16
  messages.append({"role": "assistant", "content": ChatGPT_reply})
17
  return ChatGPT_reply
18
 
19
+ demo = gradio.Interface(fn=CustomChatGPT, inputs = "text", outputs = "text", title = "Finance helper")
20
 
21
  demo.launch()