Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,13 @@ import streamlit as st
|
|
| 2 |
import json
|
| 3 |
import google.generativeai as genai
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
GOOGLE_API_KEY="AIzaSyCUBaL7TdISL7lRuBy19_X0-OsZfgbIgEc"
|
| 6 |
|
| 7 |
genai.configure(api_key=GOOGLE_API_KEY)
|
|
|
|
| 2 |
import json
|
| 3 |
import google.generativeai as genai
|
| 4 |
|
| 5 |
+
|
| 6 |
+
# Load JSON configuration
|
| 7 |
+
with open('config.json', 'r') as f:
|
| 8 |
+
config = json.load(f)
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
GOOGLE_API_KEY="AIzaSyCUBaL7TdISL7lRuBy19_X0-OsZfgbIgEc"
|
| 13 |
|
| 14 |
genai.configure(api_key=GOOGLE_API_KEY)
|