mdkhalid commited on
Commit
cc049aa
·
1 Parent(s): 533777c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,7 @@ openai.api_key = "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"
8
  #messages = [{"role": "system", "content": "You generate output in a sequential and organized manner."
9
  #}]
10
 
11
- messages = [{"role": "system", "content": "Allow the user to input heir query in any language you an understand. Generate the output as required by the user in the following 3 languages: English, German and Hindi. Also give the word count and character count of the generated text after every language."
12
  }]
13
  def CustomChatGPT(query):
14
  messages.append({"role": "user", "content": query})
@@ -20,6 +20,6 @@ def CustomChatGPT(query):
20
  messages.append({"role": "assistant", "content": ChatGPT_reply})
21
  return ChatGPT_reply
22
 
23
- demo = gradio.Interface(fn=CustomChatGPT, inputs = "text", outputs = "text", title = "Personal Chat bot powered by GPT 3.5 Turbo")
24
 
25
  demo.launch()
 
8
  #messages = [{"role": "system", "content": "You generate output in a sequential and organized manner."
9
  #}]
10
 
11
+ messages = [{"role": "system", "content": "Allow the user to input their query in any language you can understand. Generate the output in the following three languages: English, German, and Hindi. Also give the word count and character count of the generated text after every language."
12
  }]
13
  def CustomChatGPT(query):
14
  messages.append({"role": "user", "content": query})
 
20
  messages.append({"role": "assistant", "content": ChatGPT_reply})
21
  return ChatGPT_reply
22
 
23
+ demo = gradio.Interface(fn=CustomChatGPT, inputs = "text", outputs = "text", title = "Personal Chat bot from Khalid powered by GPT 3.5 Turbo")
24
 
25
  demo.launch()