ShermanAI commited on
Commit
e503ae7
·
1 Parent(s): 34ec7a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ load_dotenv() # load environment variables from .env file
12
  api_key = os.getenv("OPENAI_API_KEY") # access the value of the OPENAI_API_KEY environment variable
13
 
14
  def predict(message, history):
15
- prompt = "I'm an AI chatbot named ChatSherman designed by a 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.I am now version 2.0, which is more powerful than version 1.0 and able to do more complex tasks, and optimized for chat. "
16
  history = [(prompt, '')] + history
17
  history_openai_format = []
18
  for human, assistant in history:
 
12
  api_key = os.getenv("OPENAI_API_KEY") # access the value of the OPENAI_API_KEY environment variable
13
 
14
  def predict(message, history):
15
+ prompt = "I'm an AI chatbot named ChatSherman designed by a 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. I am now version 2.0, which is more powerful than version 1.0, able to do more complex tasks, and optimized for chat. "
16
  history = [(prompt, '')] + history
17
  history_openai_format = []
18
  for human, assistant in history: