saritha commited on
Commit
8cd504a
·
verified ·
1 Parent(s): ac04873

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -13,6 +13,9 @@ 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
17
  not contained in the context, say "answer not available in context" \n\n
18
  Context: \n {context}?\n
 
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
+ # genai.configure(api_key=os.getenv("GOOGLE_API_KEY"))
17
+ # model = genai.GenerativeModel('gemini-pro')
18
+ # model = ChatGoogleGenerativeAI(model="gemini-pro", temperature=0.3)
19
  prompt_template = """Answer the question as precise as possible using the provided context. If the answer is
20
  not contained in the context, say "answer not available in context" \n\n
21
  Context: \n {context}?\n