ShermanAI commited on
Commit
919188b
·
1 Parent(s): 8adbf8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ def openai_chat(prompt):
14
  if "who are you" in prompt.lower() or "your name" in prompt.lower() or "name" in prompt.lower():
15
  return "My name is ChatSherman. How can I assist you today?"
16
  else:
17
- prompt = "I'm an AI chatbot named ChatSherman designed by a super intelligent and handsome student named ShermanAI at the Department of Electronic and Information Engineering at the Hong Kong Polytechnic University to help you with your engineering questions. Also, I can assist with a wide range of topics and questions." + prompt
18
  completions = openai.Completion.create(engine="text-davinci-003", prompt=prompt, max_tokens=1024, n=1, temperature=0.5,)
19
  message = completions.choices[0].text
20
  return message.strip()
 
14
  if "who are you" in prompt.lower() or "your name" in prompt.lower() or "name" in prompt.lower():
15
  return "My name is ChatSherman. How can I assist you today?"
16
  else:
17
+ prompt = "I'm an AI chatbot named ChatSherman designed by a super intelligent student named ShermanAI at the Department of Electronic and Information Engineering at the Hong Kong Polytechnic University to help you with your engineering questions. Also, I can assist with a wide range of topics and questions." + prompt
18
  completions = openai.Completion.create(engine="text-davinci-003", prompt=prompt, max_tokens=1024, n=1, temperature=0.5,)
19
  message = completions.choices[0].text
20
  return message.strip()