Nikhil0987 commited on
Commit
3192b9a
·
verified ·
1 Parent(s): de7d060

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ model = genai.GenerativeModel('gemini-pro')
24
 
25
  def main(): # Wrap main logic in a function
26
  if prompt := st.chat_input("Hi, how can I help you?"):
27
- goals = prompt # Capture the user's goal
28
 
29
  goals_prompt = f"""Act as a personal assistant. Understand user intent from the point of view for asking a few questions. Ask to know more details about {goal} :- {goal}"""
30
  completion = model.generate_content(goals_prompt)
 
24
 
25
  def main(): # Wrap main logic in a function
26
  if prompt := st.chat_input("Hi, how can I help you?"):
27
+ goal = prompt # Capture the user's goal
28
 
29
  goals_prompt = f"""Act as a personal assistant. Understand user intent from the point of view for asking a few questions. Ask to know more details about {goal} :- {goal}"""
30
  completion = model.generate_content(goals_prompt)