Spaces:
Sleeping
Sleeping
Commit
·
e49f323
1
Parent(s):
661e4ea
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def main():
|
|
32 |
# If the user's message is not empty, process it
|
33 |
if user_message:
|
34 |
# Add user's message to conversation history
|
35 |
-
conversation_history.append((user_message))
|
36 |
|
37 |
# Combine conversation history to use as input for the AI assistant
|
38 |
conversation_input = "\n".join([f"{author}: {message}" for author, message in conversation_history])
|
|
|
32 |
# If the user's message is not empty, process it
|
33 |
if user_message:
|
34 |
# Add user's message to conversation history
|
35 |
+
conversation_history.append(("user", user_message))
|
36 |
|
37 |
# Combine conversation history to use as input for the AI assistant
|
38 |
conversation_input = "\n".join([f"{author}: {message}" for author, message in conversation_history])
|