Skip to content

Commit 3a3efdd

Browse files
authored
Merge pull request #329 from zurich123/EasyOCR
Fix deprecation errors in example file
2 parents aa8551f + 8578ef8 commit 3a3efdd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/resume_processor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def config_router():
134134
extractor_job_role.load_llm("gpt-4o")
135135
role_result = extractor_job_role.extract(job_role_path, RoleContract)
136136

137-
print(role_result.json())
137+
print(role_result.model_dump_json())
138138

139139
extractor_candidate = Extractor()
140140
extractor_candidate.load_document_loader(
@@ -148,10 +148,10 @@ def config_router():
148148

149149
resume_content_path = os.path.join(cwd, "examples", "files", "CV_Candidate.pdf")
150150

151-
job_role_content = "This is the job cotent. to be mapped: \n" + json_to_yaml(json.loads(role_result.json()))
151+
job_role_content = "This is the job content to be mapped: \n" + json_to_yaml(json.loads(role_result.model_dump_json()))
152152

153153
result = extractor_candidate.extract(resume_content_path,
154154
ResumeContract,
155155
content=job_role_content)
156156

157-
print(result.json())
157+
print(result.model_dump_json())

0 commit comments

Comments
 (0)