Update app.py
Browse files
app.py
CHANGED
@@ -732,10 +732,11 @@ def chat(user_input, history=[]):
|
|
732 |
response = advanced_text_generation(input_vector)
|
733 |
|
734 |
# Update the history with the new user input and response
|
735 |
-
history.append({"role": "user", "
|
736 |
-
history.append({"role": "assistant", "
|
737 |
|
738 |
-
return history # Return the updated history with '
|
|
|
739 |
|
740 |
|
741 |
|
|
|
732 |
response = advanced_text_generation(input_vector)
|
733 |
|
734 |
# Update the history with the new user input and response
|
735 |
+
history.append({"role": "user", "content": user_input}) # Store user input with 'content'
|
736 |
+
history.append({"role": "assistant", "content": response}) # Store model response with 'content'
|
737 |
|
738 |
+
return history # Return the updated history with 'role' and 'content'
|
739 |
+
|
740 |
|
741 |
|
742 |
|