Update app.py
Browse files
app.py
CHANGED
|
@@ -27,8 +27,6 @@ def chatbot(user_input, history):
|
|
| 27 |
# Initialize a new chat session for Gemini AI if history is empty
|
| 28 |
if len(history) == 0:
|
| 29 |
chat_session = model.start_chat()
|
| 30 |
-
else:
|
| 31 |
-
chat_session = history[-1]["chat_session"]
|
| 32 |
|
| 33 |
# Send the user query to Gemini AI
|
| 34 |
response = chat_session.send_message(user_input)
|
|
|
|
| 27 |
# Initialize a new chat session for Gemini AI if history is empty
|
| 28 |
if len(history) == 0:
|
| 29 |
chat_session = model.start_chat()
|
|
|
|
|
|
|
| 30 |
|
| 31 |
# Send the user query to Gemini AI
|
| 32 |
response = chat_session.send_message(user_input)
|