ahmadmac commited on
Commit
794f5d7
1 Parent(s): b4140d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ genai.configure(api_key=GOOGLE_API_KEY)
9
  model = genai.GenerativeModel('gemini-1.5-flash')
10
 
11
  def chatbot(messages,history):
12
- user_message = messages[-1]['content']
13
  response = model.generate_content(user_message)
14
  return response.text
15
 
 
9
  model = genai.GenerativeModel('gemini-1.5-flash')
10
 
11
  def chatbot(messages,history):
12
+ user_message = messages
13
  response = model.generate_content(user_message)
14
  return response.text
15