File size: 2,842 Bytes
67b1d67
 
 
68bd3e0
67b1d67
68bd3e0
 
67b1d67
cb97851
67b1d67
cb97851
67b1d67
 
 
 
 
b91ffb5
146e731
67b1d67
f5b66ec
146e731
3e6ea2e
f5b66ec
 
 
 
 
3e6ea2e
 
 
 
 
 
 
f5b66ec
3e6ea2e
146e731
68bd3e0
 
 
 
67b1d67
 
f5b66ec
 
 
fb60fa8
 
 
f5b66ec
 
5ba8d84
67b1d67
 
 
 
f5b66ec
 
 
 
 
 
5ba8d84
f5b66ec
 
67b1d67
 
edc4b6c
 
 
 
 
 
 
 
 
 
 
 
67b1d67
edc4b6c
67b1d67
 
b91ffb5
 
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
83
84
85
86
87
88
89
90
"""
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 Profile URL",
        placeholder="Enter your GitHub profile URL"
    )

    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"
    )

    gr.Markdown("""
    ## 4. Additional instructions (optional)

    Provide any additional instructions or adjustments for the resume writer agent. This could include specific formatting preferences, emphasis on certain skills, or any other customizations you'd like.
    """)

    user_instructions = gr.Textbox(
        label="Additional Instructions",
        placeholder="Enter any additional instructions for the resume writer (optional)",
        lines=3
    )

    submit_btn = gr.Button("Submit")
    output = gr.Textbox(label="Output", lines=5, max_lines=50, show_copy_button=True)

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

demo.launch()