mdkhalid commited on
Commit
546a425
·
1 Parent(s): 1241dfc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,12 +3,12 @@ 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 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
 
11
- messages = [{"role": "system", "content": "give your output as an expert in the field for which you are being asked to generate the text."
12
  }]
13
  def CustomChatGPT(query):
14
  messages.append({"role": "user", "content": query})
 
3
 
4
  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. 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
 
11
+ messages = [{"role": "system", "content": "Generate the output as required by the user. If not specified, ask the user to specify a word count; otherwise, generate an output in detail. Also give the word count and character count of the generated text."
12
  }]
13
  def CustomChatGPT(query):
14
  messages.append({"role": "user", "content": query})