Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
import google.generativeai as palm
|
2 |
import streamlit as st
|
|
|
3 |
|
4 |
# Set your API key
|
5 |
-
palm.configure(api_key='PALM_KEY')
|
6 |
|
7 |
# Select the PaLM 2 model
|
8 |
model = 'models/text-bison-001'
|
|
|
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'
|