Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from langchain.chains.question_answering import load_qa_chain # Import load_qa_
|
|
10 |
|
11 |
|
12 |
async def initialize(file_path, question):
|
13 |
-
genai.configure(api_key=os.getenv("
|
14 |
model = genai.GenerativeModel('gemini-pro')
|
15 |
model = ChatGoogleGenerativeAI(model="gemini-pro", temperature=0.3)
|
16 |
prompt_template = """Answer the question as precise as possible using the provided context. If the answer is
|
|
|
10 |
|
11 |
|
12 |
async def initialize(file_path, question):
|
13 |
+
genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
|
14 |
model = genai.GenerativeModel('gemini-pro')
|
15 |
model = ChatGoogleGenerativeAI(model="gemini-pro", temperature=0.3)
|
16 |
prompt_template = """Answer the question as precise as possible using the provided context. If the answer is
|