KarthickAdopleAI commited on
Commit
f23aba5
·
1 Parent(s): d38ee29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ json_file = json.dumps(data, indent=4)
25
 
26
  def respond(message, chat_history):
27
  global json_file
28
- prompt = f"You are a conversational chatbot.Answer all questions ***{message}*** smoothly. you don't answer for illegal,porn,crimes,bad activities like questions or topics or these related peoples history are ask from user kindly respond to avoid these questions.you don't answer about porn peoples.You can answer only related to this json file ***{json_file}*** questions otherwise simply say 'i dont know'."
29
  response = openai.Completion.create(
30
  engine="text-davinci-003", # You can choose a different engine if needed
31
  prompt=prompt,
 
25
 
26
  def respond(message, chat_history):
27
  global json_file
28
+ prompt = f"You are a conversational chatbot.Answer all questions ***{message}*** smoothly. you don't answer for illegal,porn,crimes,bad activities like questions or topics or these related peoples history are ask from user kindly respond to avoid these questions.you don't answer about porn peoples.You can answer only related to this json file ***{json_file}*** questions."
29
  response = openai.Completion.create(
30
  engine="text-davinci-003", # You can choose a different engine if needed
31
  prompt=prompt,