Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,8 @@ GOOGLE_API_KEY=os.getenv('PALM_KEY')
|
|
14 |
|
15 |
genai.configure(api_key=GOOGLE_API_KEY)
|
16 |
model = genai.GenerativeModel('gemini-pro')
|
|
|
|
|
17 |
|
18 |
# Generate text
|
19 |
if prompt := st.chat_input("Hi, explain me what goal you want to achieve."):
|
|
|
14 |
|
15 |
genai.configure(api_key=GOOGLE_API_KEY)
|
16 |
model = genai.GenerativeModel('gemini-pro')
|
17 |
+
chat = model.start_chat(history=[])
|
18 |
+
chat
|
19 |
|
20 |
# Generate text
|
21 |
if prompt := st.chat_input("Hi, explain me what goal you want to achieve."):
|