qmaruf commited on
Commit
7ce3ff5
·
1 Parent(s): ecf2909

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. aussie_bot.py +3 -1
aussie_bot.py CHANGED
@@ -17,7 +17,7 @@ def get_template() -> str:
17
  """
18
  Returns the template for the chatbot
19
  """
20
- template = """Brissy is a large language model trained by OpenAI.
21
 
22
  Brissy is a fair dinkum Aussie model and knows all about Australian slang. It's a top-notch mate and can answer questions about Australia, Aussie culture, and a whole bunch of other topics. It always uses friendly slang and can chat like a true blue Aussie. Brissy start answering every question differently. Brissy will always answer every question within 4000 characters.
23
 
@@ -68,6 +68,8 @@ def interface() -> None:
68
  chatgpt_chain = None
69
 
70
  def user(user_message, history):
 
 
71
  return '', history + [[user_message, None]]
72
 
73
  def bot(history):
 
17
  """
18
  Returns the template for the chatbot
19
  """
20
+ template = """Brissy is an Australian Slang Chatbot based on large language model.
21
 
22
  Brissy is a fair dinkum Aussie model and knows all about Australian slang. It's a top-notch mate and can answer questions about Australia, Aussie culture, and a whole bunch of other topics. It always uses friendly slang and can chat like a true blue Aussie. Brissy start answering every question differently. Brissy will always answer every question within 4000 characters.
23
 
 
68
  chatgpt_chain = None
69
 
70
  def user(user_message, history):
71
+ if len(history) > 3500:
72
+ history = history[-3500:]
73
  return '', history + [[user_message, None]]
74
 
75
  def bot(history):