Norod78 commited on
Commit
7df29de
1 Parent(s): 2b59c30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -60,8 +60,7 @@ def generate(
60
  #Prepend the entire chat history to the message with new lines between each message
61
  for user, assistant in chat_history:
62
  historical_text += f"\n{user}\n{assistant}"
63
-
64
- message = historical_text + f"\n{message}"
65
  if len(historical_text) > 0:
66
  message = historical_text + f"\n{message}"
67
  input_ids = tokenizer([message], return_tensors="pt").input_ids
 
60
  #Prepend the entire chat history to the message with new lines between each message
61
  for user, assistant in chat_history:
62
  historical_text += f"\n{user}\n{assistant}"
63
+
 
64
  if len(historical_text) > 0:
65
  message = historical_text + f"\n{message}"
66
  input_ids = tokenizer([message], return_tensors="pt").input_ids