gperdrizet commited on
Commit
f5b66ec
·
1 Parent(s): 1084ca5

Cleaned up, added some instruction text to the UI and renamed the PDF resume parsing module.

Browse files
functions/{context_acquisition.py → linkedin_resume.py} RENAMED
File without changes
resumate.py CHANGED
@@ -15,7 +15,7 @@ To run:
15
  """
16
 
17
  import gradio as gr
18
- from functions.context_acquisition import extract_text_from_linkedin_pdf, get_llm_context_from_resume
19
 
20
 
21
  def process_inputs(linkedin_pdf, github_url, job_post_url):
@@ -58,10 +58,14 @@ def process_inputs(linkedin_pdf, github_url, job_post_url):
58
  return result
59
 
60
  with gr.Blocks() as demo:
61
- gr.Markdown("# Resumate: Profile & Job Post Input")
62
 
63
  gr.Markdown("""
64
- ## How to Export Your LinkedIn Profile as PDF
 
 
 
 
65
 
66
  1. **Go to your LinkedIn profile page** (linkedin.com/in/your-profile)
67
  2. **Click "More" button** (three dots) in your profile header section
@@ -69,7 +73,7 @@ with gr.Blocks() as demo:
69
  4. **Wait for the download** - LinkedIn will generate and download your profile as a PDF file
70
  5. **Upload the downloaded PDF** using the file upload box below
71
 
72
- 💡 **Tip**: Make sure your LinkedIn profile is complete and up-to-date before exporting for best results!
73
  """)
74
 
75
  linkedin_pdf = gr.File(
@@ -78,14 +82,26 @@ with gr.Blocks() as demo:
78
  file_count="single"
79
  )
80
 
 
 
 
 
 
 
81
  github_profile = gr.Textbox(
82
  label="GitHub Profile URL",
83
  placeholder="Enter your GitHub profile URL"
84
  )
85
 
 
 
 
 
 
 
86
  job_post = gr.Textbox(
87
- label="LinkedIn Job Post URL",
88
- placeholder="Enter the LinkedIn job post URL"
89
  )
90
 
91
  submit_btn = gr.Button("Submit")
 
15
  """
16
 
17
  import gradio as gr
18
+ from functions.linkedin_resume import extract_text_from_linkedin_pdf
19
 
20
 
21
  def process_inputs(linkedin_pdf, github_url, job_post_url):
 
58
  return result
59
 
60
  with gr.Blocks() as demo:
61
+ gr.Markdown("# Resumate: tailored resume generator")
62
 
63
  gr.Markdown("""
64
+ ## 1. Biographical details
65
+
66
+ Upload your LinkedIn profile export as a PDF file to provide experience and education details.
67
+
68
+ ### How to Export Your LinkedIn Profile as PDF
69
 
70
  1. **Go to your LinkedIn profile page** (linkedin.com/in/your-profile)
71
  2. **Click "More" button** (three dots) in your profile header section
 
73
  4. **Wait for the download** - LinkedIn will generate and download your profile as a PDF file
74
  5. **Upload the downloaded PDF** using the file upload box below
75
 
76
+ **Tip**: Make sure your LinkedIn profile is complete and up-to-date before exporting for best results!
77
  """)
78
 
79
  linkedin_pdf = gr.File(
 
82
  file_count="single"
83
  )
84
 
85
+ gr.Markdown("""
86
+ ## 2. Project portfolio
87
+
88
+ Provide your GitHub profile URL, resumate will select and add the projects most relevent to the job post.
89
+ """)
90
+
91
  github_profile = gr.Textbox(
92
  label="GitHub Profile URL",
93
  placeholder="Enter your GitHub profile URL"
94
  )
95
 
96
+ gr.Markdown("""
97
+ ## 3. The job post
98
+
99
+ Provide the full text of the job post you are applying for, resumate will tailor your resume to match the job description.
100
+ """)
101
+
102
  job_post = gr.Textbox(
103
+ label="Job Post",
104
+ placeholder="Copy and paste the job post text here"
105
  )
106
 
107
  submit_btn = gr.Button("Submit")
tests/test_context_acquisition.py CHANGED
@@ -6,7 +6,7 @@ import unittest
6
  import tempfile
7
  import os
8
  from unittest.mock import patch, MagicMock
9
- from functions import context_acquisition as ca
10
 
11
 
12
  class TestCleanExtractedText(unittest.TestCase):
 
6
  import tempfile
7
  import os
8
  from unittest.mock import patch, MagicMock
9
+ from functions import linkedin_resume as ca
10
 
11
 
12
  class TestCleanExtractedText(unittest.TestCase):