Spaces:
Sleeping
Sleeping
Update chat.py
Browse files
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:
|