Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya190803 authored Sep 26, 2024
1 parent 769eff1 commit a399b4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
# Define cached functions
@st.cache_data()
def get_gemini_response(input, pdf_content, prompt):
model = genai.GenerativeModel('gemini-pro-vision')
model = genai.GenerativeModel('gemini-1.5-flash')
response = model.generate_content([input, pdf_content[0], prompt])
return response.text

@st.cache_data()
def get_gemini_response_keywords(input, pdf_content, prompt):
model = genai.GenerativeModel('gemini-pro-vision')
model = genai.GenerativeModel('gemini-1.5-flash')
response = model.generate_content([input, pdf_content[0], prompt])
return json.loads(response.text[8:-4])

Expand Down

0 comments on commit a399b4b

Please sign in to comment.