Upload folder using huggingface_hub
Browse files
graph.py
CHANGED
|
@@ -225,9 +225,9 @@ async def fn_standardize_current_report_node(state: SheamiState):
|
|
| 225 |
report.report_contents = pdf_to_text_ocr(
|
| 226 |
pdf_path=report.report_file_name_with_path
|
| 227 |
)
|
| 228 |
-
logger.info("Parsed text using OCR: %s", report.report_contents)
|
| 229 |
run_stats_details = await get_db().get_run_stats_by_id(id=state["run_id"])
|
| 230 |
-
run_stats_details["source_file_contents"][state["current_index"]] = report.report_contents
|
| 231 |
await get_db().update_run_stats(run_id=state["run_id"], source_file_contents=run_stats_details["source_file_contents"])
|
| 232 |
result = await call_llm(report=report, ocr=True)
|
| 233 |
if not result.lab_results:
|
|
|
|
| 225 |
report.report_contents = pdf_to_text_ocr(
|
| 226 |
pdf_path=report.report_file_name_with_path
|
| 227 |
)
|
| 228 |
+
# logger.info("Parsed text using OCR: %s", report.report_contents)
|
| 229 |
run_stats_details = await get_db().get_run_stats_by_id(id=state["run_id"])
|
| 230 |
+
run_stats_details["source_file_contents"][state["current_index"]] = report.report_contents.replace("\\n","\n")
|
| 231 |
await get_db().update_run_stats(run_id=state["run_id"], source_file_contents=run_stats_details["source_file_contents"])
|
| 232 |
result = await call_llm(report=report, ocr=True)
|
| 233 |
if not result.lab_results:
|