Katieearl1513 commited on
Commit
bf9bb44
·
verified ·
1 Parent(s): 2647873

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
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)