Nikhil0987 commited on
Commit
3c3c7f8
·
verified ·
1 Parent(s): b55b0cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,10 +28,10 @@ genai.configure(api_key=GOOGLE_API_KEY)
28
  model = genai.GenerativeModel('gemini-pro')
29
 
30
  if prompt := st.chat_input("Hi, how can I help you?"):
31
- enprom = f"""
32
  Act as a personal assistant, Understand user intent from the point of view for asking a few questions. ask to know more details about {prompt}
33
  :- {prompt}"""
34
- completetion = model.generate_content(enprom)
35
  with st.chat_message("Assistant"):
36
  st.write(completetion.text)
37
 
 
28
  model = genai.GenerativeModel('gemini-pro')
29
 
30
  if prompt := st.chat_input("Hi, how can I help you?"):
31
+ goals = f"""
32
  Act as a personal assistant, Understand user intent from the point of view for asking a few questions. ask to know more details about {prompt}
33
  :- {prompt}"""
34
+ completetion = model.generate_content(goals)
35
  with st.chat_message("Assistant"):
36
  st.write(completetion.text)
37