Nikhil0987 commited on
Commit
a18da09
·
verified ·
1 Parent(s): b85040c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -14,6 +14,8 @@ GOOGLE_API_KEY=os.getenv('PALM_KEY')
14
 
15
  genai.configure(api_key=GOOGLE_API_KEY)
16
  model = genai.GenerativeModel('gemini-pro')
 
 
17
 
18
  # Generate text
19
  if prompt := st.chat_input("Hi, explain me what goal you want to achieve."):
 
14
 
15
  genai.configure(api_key=GOOGLE_API_KEY)
16
  model = genai.GenerativeModel('gemini-pro')
17
+ chat = model.start_chat(history=[])
18
+ chat
19
 
20
  # Generate text
21
  if prompt := st.chat_input("Hi, explain me what goal you want to achieve."):