Paul Rock commited on
Commit
440d5fc
1 Parent(s): 13f3831

Example updated

Browse files
Files changed (1) hide show
  1. README.md +5 -0
README.md CHANGED
@@ -119,10 +119,15 @@ print(generation_config)
119
  conversation = Conversation()
120
  while True:
121
  user_message = input("User: ")
 
122
  if user_message.strip() == "/reset":
123
  conversation = Conversation()
124
  print("History reset completed!")
125
  continue
 
 
 
 
126
  conversation.add_user_message(user_message)
127
  prompt = conversation.get_prompt(tokenizer)
128
  output = generate(
 
119
  conversation = Conversation()
120
  while True:
121
  user_message = input("User: ")
122
+
123
  if user_message.strip() == "/reset":
124
  conversation = Conversation()
125
  print("History reset completed!")
126
  continue
127
+
128
+ if user_message.strip() == "":
129
+ continue
130
+
131
  conversation.add_user_message(user_message)
132
  prompt = conversation.get_prompt(tokenizer)
133
  output = generate(