Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,13 +9,12 @@ os.system("pip uninstall -y gradio")
|
|
| 9 |
os.system("pip install gradio==5.0.2")
|
| 10 |
os.system("pip install --upgrade pip")
|
| 11 |
#@title DECIPHER THE CODE EXPLAINER
|
| 12 |
-
pip install gradio
|
| 13 |
import gradio as gr
|
| 14 |
import google.generativeai as palm
|
| 15 |
|
| 16 |
# load model
|
| 17 |
# PaLM API Key here
|
| 18 |
-
palm.configure(api_key='
|
| 19 |
# Use the palm.list_models function to find available models
|
| 20 |
# PaLM 2 available in 4 sizes: Gecko, Otter, Bison and Unicorn (largest)
|
| 21 |
models = [m for m in palm.list_models() if 'generateText' in m.supported_generation_methods]
|
|
|
|
| 9 |
os.system("pip install gradio==5.0.2")
|
| 10 |
os.system("pip install --upgrade pip")
|
| 11 |
#@title DECIPHER THE CODE EXPLAINER
|
|
|
|
| 12 |
import gradio as gr
|
| 13 |
import google.generativeai as palm
|
| 14 |
|
| 15 |
# load model
|
| 16 |
# PaLM API Key here
|
| 17 |
+
palm.configure(api_key='AIzaSyCkBTxQSWr-yVphJ6XdPzOypLr-RwfLRbA')
|
| 18 |
# Use the palm.list_models function to find available models
|
| 19 |
# PaLM 2 available in 4 sizes: Gecko, Otter, Bison and Unicorn (largest)
|
| 20 |
models = [m for m in palm.list_models() if 'generateText' in m.supported_generation_methods]
|