Nikhil0987 commited on
Commit
001496d
·
verified ·
1 Parent(s): 4ed750a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -11
app.py CHANGED
@@ -15,17 +15,8 @@ def add_to_json(new_data):
15
 
16
  # Usage:
17
  new_data = {
18
- "new_goal": "Master Streamlit",
19
- "reminder": "Read tutorials"
20
- }
21
- add_to_json(new_data)
22
-
23
-
24
- GOOGLE_API_KEY="AIzaSyCUBaL7TdISL7lRuBy19_X0-OsZfgbIgEc"
25
-
26
- genai.configure(api_key=GOOGLE_API_KEY)
27
-
28
- model = genai.GenerativeModel('gemini-pro')
29
 
30
  if userinput := st.chat_input("Hi"):
31
  newuserinput = f"""
@@ -39,3 +30,17 @@ if userinput := st.chat_input("Hi"):
39
 
40
  with st.chat_message("Assistant"):
41
  st.write(answer.text)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
 
16
  # Usage:
17
  new_data = {
18
+ # "new_goal": "Master Streamlit",
19
+ # "reminder": "Read tutorials"
 
 
 
 
 
 
 
 
 
20
 
21
  if userinput := st.chat_input("Hi"):
22
  newuserinput = f"""
 
30
 
31
  with st.chat_message("Assistant"):
32
  st.write(answer.text)
33
+
34
+
35
+
36
+ }
37
+ add_to_json(new_data)
38
+
39
+
40
+ GOOGLE_API_KEY="AIzaSyCUBaL7TdISL7lRuBy19_X0-OsZfgbIgEc"
41
+
42
+ genai.configure(api_key=GOOGLE_API_KEY)
43
+
44
+ model = genai.GenerativeModel('gemini-pro')
45
+
46
+