Nikhil0987 commited on
Commit
852aeb1
·
verified ·
1 Parent(s): b8f6237

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,7 +4,7 @@ import google.generativeai as genai
4
 
5
 
6
 
7
- Goal = st.text_input("Enter your Goal:")
8
 
9
 
10
  def add_to_json(new_data):
@@ -21,7 +21,7 @@ def add_to_json(new_data):
21
  new_data = {
22
 
23
 
24
- "goal": "Goal",
25
 
26
 
27
  }
@@ -40,7 +40,7 @@ genai.configure(api_key=GOOGLE_API_KEY)
40
  model = genai.GenerativeModel('gemini-pro')
41
 
42
 
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
 
 
4
 
5
 
6
 
7
+
8
 
9
 
10
  def add_to_json(new_data):
 
21
  new_data = {
22
 
23
 
24
+ "goal": "userinput ",
25
 
26
 
27
  }
 
40
  model = genai.GenerativeModel('gemini-pro')
41
 
42
 
43
+ 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