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