hruday96 commited on
Commit
6249bdd
·
verified ·
1 Parent(s): 4dd644a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import streamlit as st
2
  from docx import Document
3
  import PyPDF2
4
- import genai # Assuming the Gemini client is available as 'genai'
5
 
6
  # Title of the app
7
  st.title("JD-Resume Fit Check App")
@@ -62,7 +62,7 @@ if resume_text and job_description:
62
  5. Provide a match score based on how well the resume aligns with the job description. Include a brief justification for the score.
63
  """
64
 
65
- # Call the Gemini API (ensure you're using the right method for Gemini)
66
  try:
67
  # Generate content using the Gemini API (adjust the model name as needed)
68
  response = genai.GenerativeModel('gemini-pro').generate_content(prompt)
 
1
  import streamlit as st
2
  from docx import Document
3
  import PyPDF2
4
+ import google.generativeai as genai # Correct package for Gemini
5
 
6
  # Title of the app
7
  st.title("JD-Resume Fit Check App")
 
62
  5. Provide a match score based on how well the resume aligns with the job description. Include a brief justification for the score.
63
  """
64
 
65
+ # Call the Gemini API (using google-generativeai)
66
  try:
67
  # Generate content using the Gemini API (adjust the model name as needed)
68
  response = genai.GenerativeModel('gemini-pro').generate_content(prompt)