gperdrizet commited on
Commit
67b1d67
·
verified ·
1 Parent(s): e832eeb

Added Gradio UI.

Browse files
Files changed (1) hide show
  1. resumate.py +53 -0
resumate.py ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ resumate.py
3
+
4
+ A simple Gradio UI for collecting user profile and job post URLs.
5
+
6
+ This app provides three text input fields for:
7
+ - LinkedIn profile URL
8
+ - GitHub profile URL
9
+ - LinkedIn job post URL
10
+
11
+ Upon submission, the input values are displayed in the output box.
12
+
13
+ To run:
14
+ python resumate.py
15
+ """
16
+
17
+ import gradio as gr
18
+
19
+
20
+ def process_inputs(linkedin_url, github_url, job_post_url):
21
+ """
22
+ Placeholder function to process the input URLs.
23
+ Replace this docstring and logic with actual implementation as needed.
24
+ """
25
+ return f"LinkedIn: {linkedin_url}\nGitHub: {github_url}\nJob Post: {job_post_url}"
26
+
27
+ with gr.Blocks() as demo:
28
+ gr.Markdown("# Resumate: Profile & Job Post Input")
29
+ linkedin_url = gr.Textbox(
30
+ label="LinkedIn Profile URL",
31
+ placeholder="Enter your LinkedIn profile URL"
32
+ )
33
+
34
+ github_url = gr.Textbox(
35
+ label="GitHub Profile URL",
36
+ placeholder="Enter your GitHub profile URL"
37
+ )
38
+
39
+ job_post_url = gr.Textbox(
40
+ label="LinkedIn Job Post URL",
41
+ placeholder="Enter the LinkedIn job post URL"
42
+ )
43
+
44
+ submit_btn = gr.Button("Submit")
45
+ output = gr.Textbox(label="Output", lines=3)
46
+
47
+ submit_btn.click( # pylint: disable=no-member
48
+ process_inputs,
49
+ inputs=[linkedin_url, github_url, job_post_url],
50
+ outputs=output
51
+ )
52
+
53
+ demo.launch()