File size: 2,352 Bytes
67b1d67
 
 
68bd3e0
67b1d67
68bd3e0
 
67b1d67
cb97851
67b1d67
cb97851
67b1d67
 
 
 
 
b91ffb5
146e731
00268c0
67b1d67
f5b66ec
146e731
3e6ea2e
f5b66ec
 
 
 
 
3e6ea2e
 
 
 
 
 
 
f5b66ec
3e6ea2e
146e731
68bd3e0
 
 
 
67b1d67
 
f5b66ec
 
 
fb60fa8
 
 
f5b66ec
 
5ba8d84
7952414
 
67b1d67
 
f5b66ec
 
 
 
 
 
5ba8d84
f5b66ec
00268c0
 
 
edc4b6c
 
67b1d67
00268c0
 
67b1d67
 
b91ffb5
00268c0
67b1d67
 
 
146e731
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
"""
resumate.py

A simple Gradio UI for collecting user profile and job post information.

This app provides inputs for:
- LinkedIn resume export PDF file upload
- GitHub profile URL
- LinkedIn job post text

Upon submission, the input values are processed and displayed in the output box.

To run:
    python resumate.py
"""
import gradio as gr
from functions.gradio import process_inputs


with gr.Blocks() as demo:
    gr.Markdown("# Resumate: tailored resume generator")

    gr.Markdown("""
    ## 1. Biographical details

    Upload your LinkedIn profile export as a PDF file to provide experience and education details.
    
    ### How to Export Your LinkedIn Profile as PDF
    
    1. **Go to your LinkedIn profile page** (linkedin.com/in/your-profile)
    2. **Click "More" button** (three dots) in your profile header section
    3. **Select "Save to PDF"** from the dropdown menu
    4. **Wait for the download** - LinkedIn will generate and download your profile as a PDF file
    5. **Upload the downloaded PDF** using the file upload box below
    
    **Tip**: Make sure your LinkedIn profile is complete and up-to-date before exporting for best results!
    """)

    linkedin_pdf = gr.File(
        label="LinkedIn Resume Export PDF",
        file_types=[".pdf"],
        file_count="single"
    )

    gr.Markdown("""
    ## 2. Project portfolio

    Provide your GitHub profile URL, resumate will select and add the projects most relevant to the job post. Only public repositories will be considered.

    **Tip**: Make sure your GitHub profile is complete and up-to-date before using resumate!
    """)

    github_profile = gr.Textbox(
        label="GitHub Username",
        placeholder="Enter your GitHub username"
    )

    gr.Markdown("""
    ## 3. The job post

    Provide the full text of the job post you are applying for, resumate will tailor your resume to match the job description.
    """)

    job_post = gr.Textbox(
        label="Job Post",
        placeholder="Copy and paste the job post text here",
        lines=1,
        max_lines=5
    )

    submit_btn = gr.Button("Submit")

    output = gr.Markdown(label="Generated Resume")

    submit_btn.click( # pylint: disable=no-member
        process_inputs,
        inputs=[linkedin_pdf, github_profile, job_post],
        outputs=output
    )

demo.launch()