Spaces:
Build error
Build error
Update util.py
Browse files
util.py
CHANGED
|
@@ -9,7 +9,7 @@ from langchain_google_genai import ChatGoogleGenerativeAI
|
|
| 9 |
import google.generativeai as genai
|
| 10 |
from dotenv import load_dotenv
|
| 11 |
load_dotenv()
|
| 12 |
-
genai.configure(api_key="
|
| 13 |
|
| 14 |
def extract_text(json_path):
|
| 15 |
with open(json_path, 'r') as file:
|
|
|
|
| 9 |
import google.generativeai as genai
|
| 10 |
from dotenv import load_dotenv
|
| 11 |
load_dotenv()
|
| 12 |
+
genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
|
| 13 |
|
| 14 |
def extract_text(json_path):
|
| 15 |
with open(json_path, 'r') as file:
|