Views
No views yet
# Append user input to conversation history
conversation_history += user_input + " "
# Generate response based on the entire conversation history
response = generator(conversation_history, max_length=100, num_return_sequences=1)[0]['generated_text']
print("Model:", response)