Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
|
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)
|