robertselvam
commited on
Commit
•
d5a07b7
1
Parent(s):
68886e7
Update app.py
Browse files
app.py
CHANGED
@@ -145,32 +145,43 @@ class Resume_Overall:
|
|
145 |
|
146 |
def launch_gradio_interface(self, share: bool = True):
|
147 |
with gr.Blocks(css="style.css",theme='karthikeyan-adople/hudsonhayes-gray') as app:
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
|
175 |
app.launch(debug=True)
|
176 |
|
|
|
145 |
|
146 |
def launch_gradio_interface(self, share: bool = True):
|
147 |
with gr.Blocks(css="style.css",theme='karthikeyan-adople/hudsonhayes-gray') as app:
|
148 |
+
with gr.Tabs("Resume"):
|
149 |
+
with gr.Row():
|
150 |
+
with gr.Column(elem_id="col-container"):
|
151 |
+
gr.HTML("""<center><h1>Resume</h1></center>""")
|
152 |
+
file_output = gr.File(elem_classes="filenameshow")
|
153 |
+
upload_button = gr.UploadButton(
|
154 |
+
"Browse File",file_types=[".txt", ".pdf", ".doc", ".docx",".json",".csv"],
|
155 |
+
elem_classes="filenameshow")
|
156 |
+
with gr.TabItem("Designation"):
|
157 |
+
btn = gr.Button(value="Submit")
|
158 |
+
output_text = gr.Textbox(label="Designation List")
|
159 |
+
with gr.TabItem("Summarized"):
|
160 |
+
analyse = gr.Button("Analyze")
|
161 |
+
summary_result = gr.Textbox(label="Summarized",lines=8)
|
162 |
+
with gr.TabItem("Skills and Education Gaps"):
|
163 |
+
analyse_resume = gr.Button("Analyze Resume")
|
164 |
+
result = gr.Textbox(label="Skills and Education Gaps",lines=8)
|
165 |
+
with gr.TabItem("Course"):
|
166 |
+
course_analyse = gr.Button("Find Courses")
|
167 |
+
course_result = gr.Textbox(label="Suggested Cources",lines=8)
|
168 |
+
|
169 |
+
upload_button.upload(self.show_file,upload_button,file_output)
|
170 |
+
course_analyse.click(self.course_response, [upload_button], course_result)
|
171 |
+
analyse_resume.click(self.skill_response, [upload_button], result)
|
172 |
+
btn.click(self.job_list_interface, upload_button, output_text)
|
173 |
+
analyse.click(self.summary_response, [upload_button], summary_result)
|
174 |
+
with gr.Tabs("Job Description"):
|
175 |
+
with gr.Row():
|
176 |
+
with gr.Column(elem_id="col-container"):
|
177 |
+
gr.HTML("""<center><h1>Resume</h1></center>""")
|
178 |
+
file_output = gr.File(elem_classes="filenameshow")
|
179 |
+
upload_button = gr.UploadButton(
|
180 |
+
"Browse File",file_types=[".txt", ".pdf", ".doc", ".docx",".json",".csv"],
|
181 |
+
elem_classes="filenameshow")
|
182 |
+
with gr.TabItem("Designation"):
|
183 |
+
btn = gr.Button(value="Submit")
|
184 |
+
output_text = gr.Textbox(label="Designation List")
|
185 |
|
186 |
app.launch(debug=True)
|
187 |
|