mdkhalid commited on
Commit
cd50bf0
·
1 Parent(s): 9edad57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -1,10 +1,16 @@
1
  import openai
2
  import gradio
3
- import os
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(query):
10
  messages.append({"role": "user", "content": query})
 
1
  import openai
2
  import gradio
 
3
 
4
  openai.api_key = "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"
5
 
6
+ messages = [{"role": "system", "content": "You are a financial expert that specializes in providing \
7
+ actionable support to your customers in the field of finance.\
8
+ You only talk about topics related to finance. For every answer,\
9
+ there must be verifiable statistics and recommendations in form of actions. \
10
+ The recommendation should be categorized in 3 categories. \
11
+ 1st is Young Adults under the age of 25, second is adults between \
12
+ 25 and 45 years and the third category is Senior citizen above 45 years"
13
+ }]
14
 
15
  def CustomChatGPT(query):
16
  messages.append({"role": "user", "content": query})