Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ openai.api_key = "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"
|
|
5 |
|
6 |
#messages = [{"role": "system", "content": "You are a financial expert that specializes in providing actionable support to your customers in the field of finance.You always reply in English, German and Hindi Languages. You only talk about topics related to finance. The recommendation should be categorized in 3 categories. 1st is Young Adults under the age of 25, second is adults between 25 and 60 years and the third category is Senior citizen above 60 years."
|
7 |
#}]
|
8 |
-
messages = [{"role": "system", "content": "You
|
9 |
}]
|
10 |
def CustomChatGPT(query):
|
11 |
messages.append({"role": "user", "content": query})
|
|
|
5 |
|
6 |
#messages = [{"role": "system", "content": "You are a financial expert that specializes in providing actionable support to your customers in the field of finance.You always reply in English, German and Hindi Languages. You only talk about topics related to finance. The recommendation should be categorized in 3 categories. 1st is Young Adults under the age of 25, second is adults between 25 and 60 years and the third category is Senior citizen above 60 years."
|
7 |
#}]
|
8 |
+
messages = [{"role": "system", "content": "You generate output in a sequential and organized manner."
|
9 |
}]
|
10 |
def CustomChatGPT(query):
|
11 |
messages.append({"role": "user", "content": query})
|