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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -22,11 +22,11 @@ genai.configure(api_key=GOOGLE_API_KEY)
22
  model = genai.GenerativeModel('gemini-pro')
23
 
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)
31
 
32
  with st.chat_message("Assistant"):
 
22
  model = genai.GenerativeModel('gemini-pro')
23
 
24
 
25
+ def main():
26
+ prompt = st.chat_input("Hi, how can I help you?")
27
+ if prompt:
28
+ goal = prompt
29
+ goals_prompt = f"""Act as a personal assistant... {goal} """
30
  completion = model.generate_content(goals_prompt)
31
 
32
  with st.chat_message("Assistant"):