Nikhil0987 commited on
Commit
e0f18c1
·
verified ·
1 Parent(s): 21a600f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -40,17 +40,16 @@ genai.configure(api_key=GOOGLE_API_KEY)
40
  model = genai.GenerativeModel('gemini-pro')
41
 
42
 
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
 
 
49
 
50
- answer = model.generate_content(newuserinput)
51
 
52
-
53
- with st.chat_message("Assistant"):
54
- st.write(answer.text)
55
 
56
 
 
40
  model = genai.GenerativeModel('gemini-pro')
41
 
42
 
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
 
49
+ answer = model.generate_content(newuserinput)
50
 
 
51
 
52
+ with st.chat_message("Assistant"):
53
+ st.write(answer.text)
 
54
 
55