Nikhil0987 commited on
Commit
551670d
·
verified ·
1 Parent(s): 4dbc387

Update chat.py

Browse files
Files changed (1) hide show
  1. chat.py +4 -4
chat.py CHANGED
@@ -2,10 +2,10 @@ import streamlit as st
2
  import json
3
  import google.generativeai as genai
4
 
5
-
6
- GOOGLE_API_KEY = "AIzaSyCUBaL7TdISL7lRuBy19_X0-OsZfgbIgEc"
7
- genai.configure(api_key=GOOGLE_API_KEY)
8
- model = genai.GenerativeModel('gemini-pro')
9
 
10
  def add_to_json(goal):
11
  try:
 
2
  import json
3
  import google.generativeai as genai
4
 
5
+ def CHat():
6
+ GOOGLE_API_KEY = "AIzaSyCUBaL7TdISL7lRuBy19_X0-OsZfgbIgEc"
7
+ genai.configure(api_key=GOOGLE_API_KEY)
8
+ model = genai.GenerativeModel('gemini-pro')
9
 
10
  def add_to_json(goal):
11
  try: