Skip to content

Commit

Permalink
updated the mock payload data for text extraction;
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjan-stha committed May 28, 2024
1 parent 98f146f commit 30f074e
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions analysis_module/mockserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,15 +311,15 @@ def process_extraction_mock(body) -> Any:
Center for Human Rights, Al Mezan, and Al-Haq—call on the international community to promptly intervene for an
immediate ceasefire, pressure Israel to halt its aggression and genocide in the Gaza Strip and its violations
in the entire occupied Palestinian territory, and ensure accountability and justice.
********* [OCR CONTENT START] *********
" ------------------------------------------------------------------------------ "
Given the high concentration of children inRafah- including many who are highly
vulnerable and at the edge of survival- as well as the likely intensity of the
violence,with potential evacuation corridors likely mined or littered with unexploded
ordnance; and shelter and services in areas for elocation very likely to be
limited-UNicEF is warning of a further catastrophe for children,with military
operations resulting in very high civilian casualties and the few remaining basic
services and infrastructure they need to survive being totally destroyed.
********* [OCR CONTENT END] *********
" ------------------------------------------------------------------------------ "
As the world marks Human Rights Day today, commemorating the adoption of the Universal
Declaration of Human Rights (UDHR) by the United Nations General Assembly in 1948;
Israel blatantly and systematically violates the majority of the declaration's articles.
Expand Down Expand Up @@ -360,8 +360,19 @@ def process_extraction_mock(body) -> Any:
}
]
images_path = [
"https://text-extraction-mock-data.s3.amazonaws.com/rose.jpg",
"https://text-extraction-mock-data.s3.amazonaws.com/USAID1619883462_1024.jpg"
{
"page_number": 1,
"images": [
"https://text-extraction-mock-data.s3.amazonaws.com/rose.jpg",
"https://text-extraction-mock-data.s3.amazonaws.com/USAID1619883462_1024.jpg"
]
},
{
"page_number": 2,
"images": [
"https://text-extraction-mock-data.s3.amazonaws.com/forum.png"
]
}
]
callback_data = {
"text_path": filepath,
Expand Down

0 comments on commit 30f074e

Please sign in to comment.