Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,13 +1,3 @@
|
|
| 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
|
| 13 |
import os
|
|
@@ -20,7 +10,7 @@ import re
|
|
| 20 |
|
| 21 |
# Set your API key
|
| 22 |
# Or use `os.getenv('GOOGLE_API_KEY')` to fetch an environment variable.
|
| 23 |
-
GOOGLE_API_KEY=
|
| 24 |
|
| 25 |
genai.configure(api_key=GOOGLE_API_KEY)
|
| 26 |
model = genai.GenerativeModel('gemini-pro')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import google.generativeai as genai
|
| 2 |
import streamlit as st
|
| 3 |
import os
|
|
|
|
| 10 |
|
| 11 |
# Set your API key
|
| 12 |
# Or use `os.getenv('GOOGLE_API_KEY')` to fetch an environment variable.
|
| 13 |
+
GOOGLE_API_KEY="AIzaSyCwSszcd45k1Ce0B48oiQnYPRdTLh49kg8"
|
| 14 |
|
| 15 |
genai.configure(api_key=GOOGLE_API_KEY)
|
| 16 |
model = genai.GenerativeModel('gemini-pro')
|