ziyadsuper2017 commited on
Commit
a608f56
·
1 Parent(s): 5b0a6ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ if user_input:
33
  response = model.generate_content(chat_history)
34
 
35
  # Get response text from response object
36
- response_text = response.contents[-1].parts[0].text
37
 
38
  # Add response message to chat history
39
  chat_history.append(response_text)
 
33
  response = model.generate_content(chat_history)
34
 
35
  # Get response text from response object
36
+ response_text = response.text
37
 
38
  # Add response message to chat history
39
  chat_history.append(response_text)