Nikhil0987 commited on
Commit
2333ef7
·
verified ·
1 Parent(s): 7df76ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -43,6 +43,9 @@ model = genai.GenerativeModel('gemini-pro')
43
  if userinput := st.chat_input("Hi"):
44
  newuserinput = f"""
45
  Act as a personal assistant, Understand users intent and tell user their intent while also motivating for setting goals from this input = {userinput}"""
 
 
 
46
 
47
 
48
 
 
43
  if userinput := st.chat_input("Hi"):
44
  newuserinput = f"""
45
  Act as a personal assistant, Understand users intent and tell user their intent while also motivating for setting goals from this input = {userinput}"""
46
+ completetion = model.generate_content(enprom)
47
+ with st.chat_message("Assistant"):
48
+ st.write(completetion.text)
49
 
50
 
51