Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
from docx import Document
|
3 |
import PyPDF2
|
4 |
-
import 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 (
|
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)
|