Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -82,10 +82,12 @@ def download_pdf_blob_as_text(storage_connection_string, container_name, blob_na
|
|
82 |
|
83 |
def load_job_data(job, resume, job_params):
|
84 |
if not job:
|
|
|
|
|
85 |
try:
|
86 |
-
pdf_filename_jobdescription = job_params["job"]+".pdf"
|
87 |
-
pdf_filename_cv = job_params["job"]+"
|
88 |
-
json_filename = job_params["job"]+"_jsondata.json"
|
89 |
storage_connection_string = os_connection_string
|
90 |
container_name = "jobdescriptions" # Der Name des Blob-Containers
|
91 |
job = download_pdf_blob_as_text(storage_connection_string, container_name, pdf_filename_jobdescription)
|
@@ -207,7 +209,7 @@ def send_evaluation(history, job, resume, job_params):
|
|
207 |
# E-Mail-Nachricht erstellen
|
208 |
subject = "Evaluation for the job: "+job_params[0]
|
209 |
message = f"""Dear Recruiter,
|
210 |
-
|
211 |
Please find attached the complete chat history for this evaluation, resume and summary.
|
212 |
|
213 |
The evaluation AI-supported summarized:
|
@@ -312,4 +314,4 @@ with gr.Blocks(css=css) as app:
|
|
312 |
clr.click(lambda: None, None, chat, queue=False)
|
313 |
|
314 |
app.queue()
|
315 |
-
app.launch()
|
|
|
82 |
|
83 |
def load_job_data(job, resume, job_params):
|
84 |
if not job:
|
85 |
+
print("JOB_PDF: "+job_params["job"].split("cv")[0][:-1]+".pdf")
|
86 |
+
print("Resume: "+job_params["job"]+".pdf")
|
87 |
try:
|
88 |
+
pdf_filename_jobdescription = job_params["job"].split("cv")[0][:-1]+".pdf"
|
89 |
+
pdf_filename_cv = job_params["job"]+".pdf"
|
90 |
+
json_filename = job_params["job"].split("cv")[0][:-1]+"_jsondata.json"
|
91 |
storage_connection_string = os_connection_string
|
92 |
container_name = "jobdescriptions" # Der Name des Blob-Containers
|
93 |
job = download_pdf_blob_as_text(storage_connection_string, container_name, pdf_filename_jobdescription)
|
|
|
209 |
# E-Mail-Nachricht erstellen
|
210 |
subject = "Evaluation for the job: "+job_params[0]
|
211 |
message = f"""Dear Recruiter,
|
212 |
+
|
213 |
Please find attached the complete chat history for this evaluation, resume and summary.
|
214 |
|
215 |
The evaluation AI-supported summarized:
|
|
|
314 |
clr.click(lambda: None, None, chat, queue=False)
|
315 |
|
316 |
app.queue()
|
317 |
+
app.launch()
|