Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,6 +43,9 @@ model = genai.GenerativeModel('gemini-pro')
|
|
| 43 |
if userinput := st.chat_input("Hi"):
|
| 44 |
newuserinput = f"""
|
| 45 |
Act as a personal assistant, Understand users intent and tell user their intent while also motivating for setting goals from this input = {userinput}"""
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
|
| 48 |
|
|
|
|
| 43 |
if userinput := st.chat_input("Hi"):
|
| 44 |
newuserinput = f"""
|
| 45 |
Act as a personal assistant, Understand users intent and tell user their intent while also motivating for setting goals from this input = {userinput}"""
|
| 46 |
+
completetion = model.generate_content(enprom)
|
| 47 |
+
with st.chat_message("Assistant"):
|
| 48 |
+
st.write(completetion.text)
|
| 49 |
|
| 50 |
|
| 51 |
|