Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,15 +25,26 @@ genai.configure(api_key=openai_api_key)
|
|
| 25 |
|
| 26 |
st.set_page_config(page_title="CV Recommendor Gen AI")
|
| 27 |
st.title("Gen AI CV Recommender")
|
| 28 |
-
|
|
|
|
| 29 |
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
with
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
if uploaded_files and job_description:
|
| 36 |
-
if st.button('AI Recommendation'):
|
| 37 |
image_bytes = pdf_to_image(uploaded_files)
|
| 38 |
|
| 39 |
all_texts = []
|
|
|
|
| 25 |
|
| 26 |
st.set_page_config(page_title="CV Recommendor Gen AI")
|
| 27 |
st.title("Gen AI CV Recommender")
|
| 28 |
+
st.write("""
|
| 29 |
+
**Find the Best Candidates for Your Job!**
|
| 30 |
|
| 31 |
+
π **What It Does:**
|
| 32 |
+
- Analyzes multiple resumes in PDF format.
|
| 33 |
+
- Matches them with your job description.
|
| 34 |
+
|
| 35 |
+
π **How It Works:**
|
| 36 |
+
1. Upload resumes π
|
| 37 |
+
2. Upload the job description π
|
| 38 |
+
3. Get a table of top recommended candidates π
|
| 39 |
+
|
| 40 |
+
Ready to find the perfect fit? Let's get started!
|
| 41 |
+
""")
|
| 42 |
+
|
| 43 |
+
uploaded_files = st.sidebar.file_uploader("Choose PDF files", accept_multiple_files=True, type="pdf")
|
| 44 |
+
job_description = st.sidebar.text_input('Enter Job Description')
|
| 45 |
|
| 46 |
if uploaded_files and job_description:
|
| 47 |
+
if st.sidebar.button(('AI Recommendation'):
|
| 48 |
image_bytes = pdf_to_image(uploaded_files)
|
| 49 |
|
| 50 |
all_texts = []
|