Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
|
5 |
-
#
|
6 |
-
|
7 |
|
8 |
-
#
|
9 |
-
|
10 |
|
11 |
import google.generativeai as genai
|
12 |
import streamlit as st
|
|
|
1 |
+
import google.generativeai as palm
|
2 |
+
import streamlit as st
|
3 |
+
import os
|
4 |
|
5 |
+
# Set your API key
|
6 |
+
palm.configure(api_key = os.environ['PALM_KEY'])
|
7 |
|
8 |
+
# Select the PaLM 2 model
|
9 |
+
model = 'models/text-bison-001'
|
10 |
|
11 |
import google.generativeai as genai
|
12 |
import streamlit as st
|