CosmoAI commited on
Commit
d9ca682
·
verified ·
1 Parent(s): 871c773

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -41,14 +41,14 @@ genai.configure(api_key=GOOGLE_API_KEY)
41
  model = genai.GenerativeModel('gemini-pro')
42
 
43
  if userinput := st.chat_input("Hi"):
44
- newuserinputstring = 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
 
49
 
50
- answer = model.generate_content(newuserinputstring)
51
 
52
 
53
  with st.chat_message("Assistant"):
54
- st.write(answer)
 
41
  model = genai.GenerativeModel('gemini-pro')
42
 
43
  if userinput := st.chat_input("Hi"):
44
+ # newuserinputstring = 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
 
49
 
50
+ answer = model.generate_content(userinput)
51
 
52
 
53
  with st.chat_message("Assistant"):
54
+ st.write(answer.text)