kdevoe commited on
Commit
0c0cab0
·
verified ·
1 Parent(s): 2f31341

Updating input format

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def chat_with_dialogpt(input_text, temperature, top_p, top_k, model_size):
36
  conversation_history = memory.load_memory_variables({})['history']
37
 
38
  # Combine the (possibly summarized) history with the current user input
39
- full_history = conversation_history + f"\nYou: {input_text}\nBot:"
40
 
41
  # Truncate history to the most recent 100 tokens
42
  truncated_input_ids = truncate_history_to_100_tokens(full_history, tokenizer)
 
36
  conversation_history = memory.load_memory_variables({})['history']
37
 
38
  # Combine the (possibly summarized) history with the current user input
39
+ full_history = conversation_history + f">> User: {input_text}"
40
 
41
  # Truncate history to the most recent 100 tokens
42
  truncated_input_ids = truncate_history_to_100_tokens(full_history, tokenizer)