Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,8 @@ openai.api_key = os.getenv(api_token)
|
|
| 11 |
# Initialize chat history
|
| 12 |
messages = [{"role": "system", "content": "You are a helpful assistant."}]
|
| 13 |
|
| 14 |
-
def chatbot(user_input):
|
|
|
|
| 15 |
# Append user input to the message history
|
| 16 |
messages.append({"role": "user", "content": user_input})
|
| 17 |
|
|
|
|
| 11 |
# Initialize chat history
|
| 12 |
messages = [{"role": "system", "content": "You are a helpful assistant."}]
|
| 13 |
|
| 14 |
+
def chatbot(user_input, other):
|
| 15 |
+
print(other)
|
| 16 |
# Append user input to the message history
|
| 17 |
messages.append({"role": "user", "content": user_input})
|
| 18 |
|