Updating input format
Browse files
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"
|
| 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)
|