Gabriel commited on
Commit
ba4de4a
1 Parent(s): df02356

Fixed api issues

Browse files
.github/README.md CHANGED
@@ -1,5 +1,6 @@
1
  # HTRFLOW: A demo app for HTR
2
- We're thrilled to introduce [HTRFLOW](https://huggingface.co/spaces/Riksarkivet/htr_demo), our demonstration platform that brings to life the process of transcribing Swedish handwritten documents from the 17th to the 19th century.
 
3
 
4
  <p align="center">
5
  <img src="https://github.com/Borg93/htr_gradio_file_placeholder/blob/main/htrflow_background_dalle3.png?raw=true" alt="HTRFLOW Image" width=40%>
@@ -11,3 +12,60 @@ At the moment HTRFLOW is mainly a demo-application. It’s not intended for prod
11
  All code is open-source, all our models are on [Hugging Face](https://huggingface.co/collections/Riksarkivet/models-for-handwritten-text-recognition-652692c6871f915e766de688) and are free to use, and all data will be made available for download and use on [Hugging Face](https://huggingface.co/datasets/Riksarkivet/placeholder_htr) as well.
12
 
13
  HTRFLOW is more than just a demo; it's a testament to the advancement of open source development of HTR. As we progress, the app will be renamed into HTRFLOW.app and HTRFLOW will evolve into multiple parts. HTRFLOW will become our foundational library that will serve as the backbone for a range of applications in the transcription domain. Note that the backend (src) for the app will be rewritten and packaged to be more optimized under the project name [HTR_SVEA](https://github.com/Borg93/htr_svea) (possibly renamed into HTRFLOW.core).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # HTRFLOW: A demo app for HTR
2
+
3
+ We're thrilled to introduce [HTRFLOW](https://huggingface.co/spaces/Riksarkivet/htr_demo), our demonstration platform that brings to life the process of transcribing Swedish handwritten documents from the 17th to the 19th century.
4
 
5
  <p align="center">
6
  <img src="https://github.com/Borg93/htr_gradio_file_placeholder/blob/main/htrflow_background_dalle3.png?raw=true" alt="HTRFLOW Image" width=40%>
 
12
  All code is open-source, all our models are on [Hugging Face](https://huggingface.co/collections/Riksarkivet/models-for-handwritten-text-recognition-652692c6871f915e766de688) and are free to use, and all data will be made available for download and use on [Hugging Face](https://huggingface.co/datasets/Riksarkivet/placeholder_htr) as well.
13
 
14
  HTRFLOW is more than just a demo; it's a testament to the advancement of open source development of HTR. As we progress, the app will be renamed into HTRFLOW.app and HTRFLOW will evolve into multiple parts. HTRFLOW will become our foundational library that will serve as the backbone for a range of applications in the transcription domain. Note that the backend (src) for the app will be rewritten and packaged to be more optimized under the project name [HTR_SVEA](https://github.com/Borg93/htr_svea) (possibly renamed into HTRFLOW.core).
15
+
16
+ ## Run app
17
+
18
+ Install libraries with Makefile:
19
+
20
+ ```
21
+ make install
22
+ ```
23
+
24
+ With pip:
25
+
26
+ ```
27
+ pip install -r requirements.txt
28
+ ```
29
+
30
+ and
31
+
32
+ ```
33
+ !pip install -U openmim
34
+ !mim install mmengine
35
+ !mim install mmcv
36
+ !mim install mmdet
37
+ !mim install mmocr
38
+ ```
39
+
40
+ Run app with:
41
+
42
+ ```
43
+ gradio app.py
44
+ ```
45
+
46
+ ## Run with Docker
47
+
48
+ There are two options:
49
+
50
+ ### Run with Docker locally
51
+
52
+ Build container:
53
+
54
+ ```
55
+ docker build --tag htrflow/htrflow-app .
56
+ ```
57
+
58
+ Run container:
59
+
60
+ ```
61
+ docker run -it -d --name htrflow-app -p 7000:7000 htrflow/htrflow-app:latest
62
+ ```
63
+
64
+ ### Run with Docker with HF
65
+
66
+ You can also just run it from Hugging Face:
67
+
68
+ ```
69
+ docker run -it -p 7860:7860 --platform=linux/amd64 --gpus all \
70
+ -e registry.hf.space/riksarkivet-htr-demo:latest
71
+ ```
app.py CHANGED
@@ -31,13 +31,17 @@ with gr.Blocks(title="Riksarkivet", theme=theme, css=css) as demo:
31
  with gr.Tab("Overview"):
32
  overview.render()
33
 
34
- SECRET_KEY = os.environ.get("AM_I_IN_A_DOCKER_CONTAINER", False)
35
  if SECRET_KEY:
36
- demo.load(fn=TrafficDataHandler.onload_store_metric_data, inputs=None, outputs=None)
 
 
 
 
37
 
38
 
39
  demo.queue(concurrency_count=2, max_size=2)
40
 
41
 
42
  if __name__ == "__main__":
43
- demo.launch(server_name="0.0.0.0", server_port=7860, show_api=False, show_error=True)
 
31
  with gr.Tab("Overview"):
32
  overview.render()
33
 
34
+ SECRET_KEY = os.environ.get("HUB_TOKEN", False)
35
  if SECRET_KEY:
36
+ demo.load(
37
+ fn=TrafficDataHandler.onload_store_metric_data,
38
+ inputs=None,
39
+ outputs=None,
40
+ )
41
 
42
 
43
  demo.queue(concurrency_count=2, max_size=2)
44
 
45
 
46
  if __name__ == "__main__":
47
+ demo.launch(server_name="0.0.0.0", server_port=7860, show_api=False, show_error=False)
helper/text/overview/changelog_roadmap/changelog.md CHANGED
@@ -2,6 +2,23 @@
2
 
3
  All notable changes to HTRFLOW will be documented here.
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  ### [0.0.1] - 2023-10-23
6
 
7
  #### Added
 
2
 
3
  All notable changes to HTRFLOW will be documented here.
4
 
5
+ ### [0.0.2] - 2023-11-01
6
+
7
+ #### Added
8
+
9
+ - Better documentation for API, see **Overview** > **Duplicating for own use & API**
10
+ - Better documentation for restrictions of app, see **Overview** > **HTRFLOW**
11
+
12
+ #### Fixed
13
+
14
+ - Fixed bug for API, [issue](https://github.com/Riksarkivet/HTRFLOW/issues/2)
15
+
16
+ #### Changed
17
+
18
+ - Changed named for **FAQ & Discussion** to **FAQ & Contact**
19
+
20
+ ---
21
+
22
  ### [0.0.1] - 2023-10-23
23
 
24
  #### Added
helper/text/overview/duplicate_api/api1.md CHANGED
@@ -2,6 +2,7 @@
2
 
3
  If you prefer to run **Fast track** programmatically, we offer an API for that purpose.
4
 
 
5
  - Docuemtnation for gradio client with [python](https://www.gradio.app/guides/getting-started-with-the-python-client)
6
  - Docuemtnation for gradio client with [javascript](https://www.gradio.app/guides/getting-started-with-the-js-client)
7
 
 
2
 
3
  If you prefer to run **Fast track** programmatically, we offer an API for that purpose.
4
 
5
+ - [REST API](https://riksarkivet-htr-demo.hf.space/?view=api)
6
  - Docuemtnation for gradio client with [python](https://www.gradio.app/guides/getting-started-with-the-python-client)
7
  - Docuemtnation for gradio client with [javascript](https://www.gradio.app/guides/getting-started-with-the-js-client)
8
 
helper/text/overview/duplicate_api/api_code1.md CHANGED
@@ -5,7 +5,7 @@ from gradio_client import Client # pip install gradio_client
5
  client = Client("https://huggingface.co/spaces/Riksarkivet/htr_demo")
6
  job = client.submit(
7
  "https://your.image.url.or.pah.jpg",
8
- api_name="/predict",
9
  )
10
 
11
  print(job.result())
 
5
  client = Client("https://huggingface.co/spaces/Riksarkivet/htr_demo")
6
  job = client.submit(
7
  "https://your.image.url.or.pah.jpg",
8
+ api_name="/run_htr_pipeline",
9
  )
10
 
11
  print(job.result())
helper/text/overview/htrflow/htrflow_col1.md CHANGED
@@ -10,3 +10,9 @@ It needs to be emphasized that this application is intended mainly for demo-purp
10
  For an insight into the upcoming features we are working on:
11
 
12
  - Navigate to the > **Overview** > **Changelog & Roadmap**.
 
 
 
 
 
 
 
10
  For an insight into the upcoming features we are working on:
11
 
12
  - Navigate to the > **Overview** > **Changelog & Roadmap**.
13
+
14
+ ## Limitations
15
+
16
+ The demo, hosted on Huggingface and assigned a T4 GPU, can only handle two users submissions at a time. If you experience long wait times or unresponsiveness, this is the reason. In the future, we plan to host this solution ourselves, with a better server for an improved user experience, optimized code, and multiple model options. Exciting developments are on the horizon!
17
+
18
+ It's also important to note that the models work on running text, not text in table format.
helper/text/text_app.py CHANGED
@@ -1,5 +1,5 @@
1
  class TextApp:
2
- demo_version = """<em>Version 0.0.1</em>"""
3
 
4
  title_markdown = """
5
 
 
1
  class TextApp:
2
+ demo_version = """<em>Version 0.0.2</em>"""
3
 
4
  title_markdown = """
5
 
pyproject.toml CHANGED
@@ -1,42 +1,55 @@
1
- # [build-system]
2
- # requires = ["setuptools"]
3
- # build-backend = "setuptools.build_meta"
4
-
5
-
6
- # [project]
7
- # name = "htr_pipeline"
8
- # description = "The purpose of the project is to demo Riksarkivets HTR-pipeline"
9
- # requires-python = ">= 3.10"
10
- # version="0.0.0.dev1"
11
- # authors = [{ name = "The Swedish National Archives Face team "}]
12
- # license = { text = "MIT" }
13
-
14
- # dependencies = [
15
- # "torch",
16
- # "torchvision",
17
- # "openmim",
18
- # "gradio",
19
- # "pandas",
20
- # "numpy",
21
- # "opencv-python-headless",
22
- # "jinja2",
23
- # "transformers",
24
- # "huggingface_hub",
25
- # "requests",
26
- # ]
27
-
28
- # # !mim install mmengine
29
- # # !mim install mmcv
30
- # # !mim install mmdet
31
- # # !mim install mmocr
32
-
33
  [tool.ruff]
34
  # Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
35
  select = ["E", "F"]
36
  ignore = []
37
 
38
  # Allow autofix for all enabled rules (when `--fix`) is provided.
39
- fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  unfixable = []
41
 
42
  # Exclude a variety of commonly ignored directories.
@@ -77,4 +90,4 @@ target-version = "py310"
77
  max-complexity = 10
78
 
79
  [tool.black]
80
- line-length = 120
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  [tool.ruff]
2
  # Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
3
  select = ["E", "F"]
4
  ignore = []
5
 
6
  # Allow autofix for all enabled rules (when `--fix`) is provided.
7
+ fixable = [
8
+ "A",
9
+ "B",
10
+ "C",
11
+ "D",
12
+ "E",
13
+ "F",
14
+ "G",
15
+ "I",
16
+ "N",
17
+ "Q",
18
+ "S",
19
+ "T",
20
+ "W",
21
+ "ANN",
22
+ "ARG",
23
+ "BLE",
24
+ "COM",
25
+ "DJ",
26
+ "DTZ",
27
+ "EM",
28
+ "ERA",
29
+ "EXE",
30
+ "FBT",
31
+ "ICN",
32
+ "INP",
33
+ "ISC",
34
+ "NPY",
35
+ "PD",
36
+ "PGH",
37
+ "PIE",
38
+ "PL",
39
+ "PT",
40
+ "PTH",
41
+ "PYI",
42
+ "RET",
43
+ "RSE",
44
+ "RUF",
45
+ "SIM",
46
+ "SLF",
47
+ "TCH",
48
+ "TID",
49
+ "TRY",
50
+ "UP",
51
+ "YTT",
52
+ ]
53
  unfixable = []
54
 
55
  # Exclude a variety of commonly ignored directories.
 
90
  max-complexity = 10
91
 
92
  [tool.black]
93
+ line-length = 120
tabs/htr_tool.py CHANGED
@@ -46,13 +46,6 @@ with gr.Blocks() as htr_tool_tab:
46
  with gr.Tab("Visualize") as tab_image_viewer_selector:
47
  with gr.Row():
48
  gr.Markdown("")
49
- # gr.Button(
50
- # value="Image viewer",
51
- # variant="secondary",
52
- # link="https://huggingface.co/spaces/Riksarkivet/Viewer_demo",
53
- # interactive=True,
54
- # )
55
-
56
  run_image_visualizer_button = gr.Button(
57
  value="Visualize results", variant="primary", interactive=True
58
  )
@@ -211,19 +204,22 @@ with gr.Blocks() as htr_tool_tab:
211
  with gr.Column(scale=2):
212
  pass
213
 
214
- xml_rendered_placeholder_for_api = gr.Textbox(visible=False)
215
 
216
  htr_event_click_event = htr_pipeline_button.click(
217
  fast_track.segment_to_xml,
218
  inputs=[fast_track_input_region_image, radio_file_input],
219
  outputs=[fast_file_downlod, fast_file_downlod],
 
 
220
  )
221
 
222
  htr_pipeline_button_api.click(
223
  fast_track.segment_to_xml_api,
224
  inputs=[fast_track_input_region_image],
225
  outputs=[xml_rendered_placeholder_for_api],
226
- api_name="predict",
 
227
  )
228
 
229
  def dummy_update_htr_tool_transcriber_model_dropdown(htr_tool_transcriber_model_dropdown):
@@ -233,6 +229,8 @@ with gr.Blocks() as htr_tool_tab:
233
  fn=dummy_update_htr_tool_transcriber_model_dropdown,
234
  inputs=htr_tool_transcriber_model_dropdown,
235
  outputs=htr_tool_transcriber_model_dropdown,
 
 
236
  )
237
 
238
  def update_selected_tab_output_and_setting():
@@ -247,14 +245,22 @@ with gr.Blocks() as htr_tool_tab:
247
  tab_output_and_setting_selector.select(
248
  fn=update_selected_tab_output_and_setting,
249
  outputs=[output_and_setting_tab, image_viewer_tab, model_compare_selector],
 
 
250
  )
251
 
252
  tab_image_viewer_selector.select(
253
- fn=update_selected_tab_image_viewer, outputs=[output_and_setting_tab, image_viewer_tab, model_compare_selector]
 
 
 
254
  )
255
 
256
  tab_model_compare_selector.select(
257
- fn=update_selected_tab_model_compare, outputs=[output_and_setting_tab, image_viewer_tab, model_compare_selector]
 
 
 
258
  )
259
 
260
  def stop_function():
@@ -263,18 +269,34 @@ with gr.Blocks() as htr_tool_tab:
263
  pipeline_inferencer.terminate = True
264
  gr.Info("The HTR execution was halted")
265
 
266
- stop_htr_button.click(fn=stop_function, inputs=None, outputs=None, cancels=[htr_event_click_event])
 
 
 
 
 
 
 
267
 
268
  run_image_visualizer_button.click(
269
  fn=fast_track.visualize_image_viewer,
270
  inputs=fast_track_input_region_image,
271
  outputs=[fast_track_output_image, text_polygon_dict],
 
 
272
  )
273
 
274
  fast_track_output_image.select(
275
- fast_track.get_text_from_coords, inputs=text_polygon_dict, outputs=selection_text_from_image_viewer
 
 
 
 
276
  )
277
 
278
- SECRET_KEY = os.environ.get("AM_I_IN_A_DOCKER_CONTAINER", False)
279
  if SECRET_KEY:
280
- htr_pipeline_button.click(fn=TrafficDataHandler.store_metric_data, inputs=htr_pipeline_button_var)
 
 
 
 
46
  with gr.Tab("Visualize") as tab_image_viewer_selector:
47
  with gr.Row():
48
  gr.Markdown("")
 
 
 
 
 
 
 
49
  run_image_visualizer_button = gr.Button(
50
  value="Visualize results", variant="primary", interactive=True
51
  )
 
204
  with gr.Column(scale=2):
205
  pass
206
 
207
+ xml_rendered_placeholder_for_api = gr.Textbox(placeholder="XML", visible=False)
208
 
209
  htr_event_click_event = htr_pipeline_button.click(
210
  fast_track.segment_to_xml,
211
  inputs=[fast_track_input_region_image, radio_file_input],
212
  outputs=[fast_file_downlod, fast_file_downlod],
213
+ queue=False,
214
+ api_name=False,
215
  )
216
 
217
  htr_pipeline_button_api.click(
218
  fast_track.segment_to_xml_api,
219
  inputs=[fast_track_input_region_image],
220
  outputs=[xml_rendered_placeholder_for_api],
221
+ queue=False,
222
+ api_name="run_htr_pipeline",
223
  )
224
 
225
  def dummy_update_htr_tool_transcriber_model_dropdown(htr_tool_transcriber_model_dropdown):
 
229
  fn=dummy_update_htr_tool_transcriber_model_dropdown,
230
  inputs=htr_tool_transcriber_model_dropdown,
231
  outputs=htr_tool_transcriber_model_dropdown,
232
+ queue=False,
233
+ api_name=False,
234
  )
235
 
236
  def update_selected_tab_output_and_setting():
 
245
  tab_output_and_setting_selector.select(
246
  fn=update_selected_tab_output_and_setting,
247
  outputs=[output_and_setting_tab, image_viewer_tab, model_compare_selector],
248
+ queue=False,
249
+ api_name=False,
250
  )
251
 
252
  tab_image_viewer_selector.select(
253
+ fn=update_selected_tab_image_viewer,
254
+ outputs=[output_and_setting_tab, image_viewer_tab, model_compare_selector],
255
+ queue=False,
256
+ api_name=False,
257
  )
258
 
259
  tab_model_compare_selector.select(
260
+ fn=update_selected_tab_model_compare,
261
+ outputs=[output_and_setting_tab, image_viewer_tab, model_compare_selector],
262
+ queue=False,
263
+ api_name=False,
264
  )
265
 
266
  def stop_function():
 
269
  pipeline_inferencer.terminate = True
270
  gr.Info("The HTR execution was halted")
271
 
272
+ stop_htr_button.click(
273
+ fn=stop_function,
274
+ inputs=None,
275
+ outputs=None,
276
+ queue=False,
277
+ api_name=False,
278
+ # cancels=[htr_event_click_event],
279
+ )
280
 
281
  run_image_visualizer_button.click(
282
  fn=fast_track.visualize_image_viewer,
283
  inputs=fast_track_input_region_image,
284
  outputs=[fast_track_output_image, text_polygon_dict],
285
+ queue=False,
286
+ api_name=False,
287
  )
288
 
289
  fast_track_output_image.select(
290
+ fast_track.get_text_from_coords,
291
+ inputs=text_polygon_dict,
292
+ outputs=selection_text_from_image_viewer,
293
+ queue=False,
294
+ api_name=False,
295
  )
296
 
297
+ SECRET_KEY = os.environ.get("HUB_TOKEN", False)
298
  if SECRET_KEY:
299
+ htr_pipeline_button.click(
300
+ fn=TrafficDataHandler.store_metric_data,
301
+ inputs=htr_pipeline_button_var,
302
+ )
tabs/overview_tab.py CHANGED
@@ -59,7 +59,7 @@ with gr.Blocks() as overview:
59
  with gr.Column():
60
  gr.Markdown(TextOverview.roadmap)
61
 
62
- with gr.Tab("FAQ & Discussion"):
63
  with gr.Row():
64
  with gr.Column():
65
  gr.Markdown(TextOverview.text_faq)
 
59
  with gr.Column():
60
  gr.Markdown(TextOverview.roadmap)
61
 
62
+ with gr.Tab("FAQ & Contact"):
63
  with gr.Row():
64
  with gr.Column():
65
  gr.Markdown(TextOverview.text_faq)
test_api.ipynb DELETED
@@ -1,360 +0,0 @@
1
- {
2
- "cells": [
3
- {
4
- "cell_type": "code",
5
- "execution_count": 2,
6
- "metadata": {},
7
- "outputs": [
8
- {
9
- "name": "stdout",
10
- "output_type": "stream",
11
- "text": [
12
- "Loaded as API: http://127.0.0.1:7860/ ✔\n",
13
- "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n",
14
- "<PcGts xmlns=\"http://schema.primaresearch.org/PAGE/gts/pagecontent/2013-07-15\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://schema.primaresearch.org/PAGE/gts/pagecontent/2013-07-15 http://schema.primaresearch.org/PAGE/gts/pagecontent/2013-07-15/pagecontent.xsd\">\n",
15
- " <Metadata>\n",
16
- " <Creator>Swedish National Archives</Creator>\n",
17
- " <Created>2023-08-21, 13:28:06</Created>\n",
18
- " </Metadata>\n",
19
- " <Page imageFilename=\"page_xml.xml\" imageWidth=\"4885\" imageHeight=\"4066\">\n",
20
- " <TextRegion id=\"region_0\" custom=\"readingOrder {index:0;}\">\n",
21
- " <Coords points=\"1477,265 1467,217 1440,201 1370,211 1248,203 1127,224 1067,224 1003,212 844,247 766,243 747,261 742,280 751,332 766,346 1258,341 1357,332 1439,341 1468,327\"/>\n",
22
- " <TextLine id=\"line_region_0_0\" custom=\"readingOrder {index:0;}\">\n",
23
- " <Coords points=\"1458,248 1443,222 1449,200 1412,215 1366,200 1325,207 1302,200 1241,200 1235,206 1205,200 1187,210 1085,222 957,206 795,239 769,273 771,333 783,340 1445,333 1450,324\"/>\n",
24
- " <TextEquiv>\n",
25
- " <Unicode>År 1865.</Unicode>\n",
26
- " </TextEquiv>\n",
27
- " <PredScore pred_score=\"0.9482\"/>\n",
28
- " </TextLine>\n",
29
- " </TextRegion>\n",
30
- " <TextRegion id=\"region_1\" custom=\"readingOrder {index:1;}\">\n",
31
- " <Coords points=\"2408,486 2193,463 2150,392 2032,363 1620,397 1440,366 92,384 88,539 224,582 218,650 313,648 307,584 343,582 333,708 211,761 176,952 287,1251 250,1430 269,1680 333,1642 358,1993 644,2056 928,2031 2103,2082 2180,2047 2218,1926 2407,1918\"/>\n",
32
- " <TextLine id=\"line_region_1_0\" custom=\"readingOrder {index:0;}\">\n",
33
- " <Coords points=\"2147,425 2118,393 1648,421 1442,395 1232,414 377,404 291,433 73,430 73,491 268,482 415,530 608,491 1565,490 1645,526 1734,501 1826,528 1921,496 2129,488\"/>\n",
34
- " <TextEquiv>\n",
35
- " <Unicode>Augusti 21. från Wexiö ankommit, telegram så lydande:</Unicode>\n",
36
- " </TextEquiv>\n",
37
- " <PredScore pred_score=\"0.987\"/>\n",
38
- " </TextLine>\n",
39
- " <TextLine id=\"line_region_1_1\" custom=\"readingOrder {index:1;}\">\n",
40
- " <Coords points=\"2401,550 2382,515 2353,507 2116,528 1918,486 1818,493 1798,523 1394,490 1270,527 1018,529 914,527 828,492 732,507 612,487 531,501 512,560 527,588 1800,580 1972,626 2173,586 2233,586 2294,614 2380,604\"/>\n",
41
- " <TextEquiv>\n",
42
- " <Unicode>&quot;Poliskammaren i Götheborg. Delägaren i Torps</Unicode>\n",
43
- " </TextEquiv>\n",
44
- " <PredScore pred_score=\"0.9985\"/>\n",
45
- " </TextLine>\n",
46
- " <TextLine id=\"line_region_1_2\" custom=\"readingOrder {index:2;}\">\n",
47
- " <Coords points=\"2404,669 2382,630 2230,585 2086,623 1891,623 1739,595 1548,620 1380,600 671,608 444,625 428,672 437,702 972,683 1199,704 1408,685 2177,688 2298,707 2383,698\"/>\n",
48
- " <TextEquiv>\n",
49
- " <Unicode>jernbruksbonden Johannes Nilsson från Skägga¬</Unicode>\n",
50
- " </TextEquiv>\n",
51
- " <PredScore pred_score=\"0.9878\"/>\n",
52
- " </TextLine>\n",
53
- " <TextLine id=\"line_region_1_3\" custom=\"readingOrder {index:3;}\">\n",
54
- " <Coords points=\"409,757 1316,785 1916,775 2051,821 2144,783 2384,784 2404,760 2389,723 2267,690 1938,685 1678,713 1311,713 971,688 803,706 708,672 615,706 439,701\"/>\n",
55
- " <TextEquiv>\n",
56
- " <Unicode>lösa har i tisdags på jernväg afrest till Götheborg</Unicode>\n",
57
- " </TextEquiv>\n",
58
- " <PredScore pred_score=\"0.9875\"/>\n",
59
- " </TextLine>\n",
60
- " <TextLine id=\"line_region_1_4\" custom=\"readingOrder {index:4;}\">\n",
61
- " <Coords points=\"471,836 496,869 2177,871 2316,899 2381,881 2400,850 2380,794 2277,780 2047,809 1919,781 1824,798 1585,779 1441,804 1185,775 802,799 671,777 498,803\"/>\n",
62
- " <TextEquiv>\n",
63
- " <Unicode>ändamål att begifva sig till America Enligt</Unicode>\n",
64
- " </TextEquiv>\n",
65
- " <PredScore pred_score=\"0.9967\"/>\n",
66
- " </TextLine>\n",
67
- " <TextLine id=\"line_region_1_5\" custom=\"readingOrder {index:5;}\">\n",
68
- " <Coords points=\"409,930 422,960 2190,965 2355,962 2377,938 2375,907 2353,894 2042,878 1909,900 1611,869 1433,901 1231,870 1058,891 953,865 881,886 731,876 424,906\"/>\n",
69
- " <TextEquiv>\n",
70
- " <Unicode>anmälan har Nilsson medtagit omkring 10,000</Unicode>\n",
71
- " </TextEquiv>\n",
72
- " <PredScore pred_score=\"0.9992\"/>\n",
73
- " </TextLine>\n",
74
- " <TextLine id=\"line_region_1_6\" custom=\"readingOrder {index:6;}\">\n",
75
- " <Coords points=\"398,1015 412,1084 568,1059 730,1088 854,1057 2383,1059 2406,1028 2386,991 2148,963 2046,984 1687,975 1501,998 1270,967 918,997 524,962 413,984\"/>\n",
76
- " <TextEquiv>\n",
77
- " <Unicode>R.d, deraf en del tillhör jernbruket samt lemnat</Unicode>\n",
78
- " </TextEquiv>\n",
79
- " <PredScore pred_score=\"0.9866\"/>\n",
80
- " </TextLine>\n",
81
- " <TextLine id=\"line_region_1_7\" custom=\"readingOrder {index:7;}\">\n",
82
- " <Coords points=\"2404,1110 2383,1071 2292,1089 2024,1086 1919,1054 1777,1082 1645,1060 1324,1087 958,1087 822,1063 731,1088 422,1091 402,1127 412,1152 522,1160 1768,1152 2056,1177 2379,1155\"/>\n",
83
- " <TextEquiv>\n",
84
- " <Unicode>auppgjorda sina affärer i hemorten, uppgående</Unicode>\n",
85
- " </TextEquiv>\n",
86
- " <PredScore pred_score=\"0.9766\"/>\n",
87
- " </TextLine>\n",
88
- " <TextLine id=\"line_region_1_8\" custom=\"readingOrder {index:8;}\">\n",
89
- " <Coords points=\"388,1229 408,1248 1025,1246 1152,1276 1379,1243 1742,1242 1850,1260 2383,1249 2404,1201 2378,1173 2258,1179 2150,1148 2060,1170 1908,1159 1765,1178 1509,1158 1352,1177 1180,1160 911,1177 643,1148 391,1174\"/>\n",
90
- " <TextEquiv>\n",
91
- " <Unicode>till betydliga belopp. Nilsson år 5 fot 10 tum, har</Unicode>\n",
92
- " </TextEquiv>\n",
93
- " <PredScore pred_score=\"0.9926\"/>\n",
94
- " </TextLine>\n",
95
- " <TextLine id=\"line_region_1_9\" custom=\"readingOrder {index:9;}\">\n",
96
- " <Coords points=\"400,1312 417,1338 2277,1342 2371,1317 2342,1265 1761,1251 1203,1274 883,1245 736,1263 649,1239 562,1266 413,1277\"/>\n",
97
- " <TextEquiv>\n",
98
- " <Unicode>omidig vext, blå ögon, mörka hål, brunaktigt</Unicode>\n",
99
- " </TextEquiv>\n",
100
- " <PredScore pred_score=\"0.9871\"/>\n",
101
- " </TextLine>\n",
102
- " <TextLine id=\"line_region_1_10\" custom=\"readingOrder {index:10;}\">\n",
103
- " <Coords points=\"401,1402 411,1435 1058,1431 1144,1451 1299,1430 1911,1429 2026,1474 2145,1430 2381,1441 2398,1406 2383,1365 2290,1335 2019,1351 1879,1337 1605,1361 1488,1333 1221,1358 966,1342 911,1319 716,1355 497,1341 413,1358\"/>\n",
104
- " <TextEquiv>\n",
105
- " <Unicode>kind- och hakskägg. Under vistandet i Göteborg</Unicode>\n",
106
- " </TextEquiv>\n",
107
- " <PredScore pred_score=\"0.9805\"/>\n",
108
- " </TextLine>\n",
109
- " <TextLine id=\"line_region_1_11\" custom=\"readingOrder {index:11;}\">\n",
110
- " <Coords points=\"398,1493 412,1530 2235,1525 2295,1555 2382,1530 2395,1500 2380,1455 2296,1433 2035,1465 1944,1440 1667,1453 1589,1431 1324,1446 1232,1430 1065,1455 861,1434 565,1450 471,1435 412,1451\"/>\n",
111
- " <TextEquiv>\n",
112
- " <Unicode>har han troligen besökt handlanderne G. Berg¬</Unicode>\n",
113
- " </TextEquiv>\n",
114
- " <PredScore pred_score=\"0.9983\"/>\n",
115
- " </TextLine>\n",
116
- " <TextLine id=\"line_region_1_12\" custom=\"readingOrder {index:12;}\">\n",
117
- " <Coords points=\"2409,1584 2384,1546 2298,1553 2235,1526 1778,1557 1647,1523 1466,1515 1287,1549 925,1516 644,1555 436,1560 411,1615 434,1638 613,1618 2182,1615 2293,1637 2390,1624\"/>\n",
118
- " <TextEquiv>\n",
119
- " <Unicode>gren och Carlström. Poliskammaren torde efter</Unicode>\n",
120
- " </TextEquiv>\n",
121
- " <PredScore pred_score=\"0.9951\"/>\n",
122
- " </TextLine>\n",
123
- " <TextLine id=\"line_region_1_13\" custom=\"readingOrder {index:13;}\">\n",
124
- " <Coords points=\"2405,1669 2383,1633 2293,1633 2242,1612 2070,1648 1834,1616 1616,1642 1496,1612 1361,1648 1207,1615 1038,1647 806,1619 684,1647 427,1651 405,1700 489,1715 1605,1705 1802,1747 1911,1718 2096,1705 2323,1721 2388,1706\"/>\n",
125
- " <TextEquiv>\n",
126
- " <Unicode>spana Nilsson och, om han anträffas, anställa för</Unicode>\n",
127
- " </TextEquiv>\n",
128
- " <PredScore pred_score=\"0.9902\"/>\n",
129
- " </TextLine>\n",
130
- " <TextLine id=\"line_region_1_14\" custom=\"readingOrder {index:14;}\">\n",
131
- " <Coords points=\"2397,1755 2380,1725 2232,1734 2120,1697 1976,1736 1814,1741 1711,1726 1583,1737 1384,1701 1219,1739 956,1700 521,1736 439,1703 407,1726 394,1770 409,1805 1471,1804 1576,1822 1619,1849 1680,1820 1765,1829 1880,1803 2380,1791\"/>\n",
132
- " <TextEquiv>\n",
133
- " <Unicode>hör samt med honom lagligen förfara. Skulle han</Unicode>\n",
134
- " </TextEquiv>\n",
135
- " <PredScore pred_score=\"0.9878\"/>\n",
136
- " </TextLine>\n",
137
- " <TextLine id=\"line_region_1_15\" custom=\"readingOrder {index:15;}\">\n",
138
- " <Coords points=\"2410,1869 2398,1818 2357,1799 2040,1829 1884,1802 1792,1826 1706,1811 1614,1832 1407,1790 1074,1830 827,1808 652,1826 556,1802 410,1832 395,1879 408,1900 2383,1894\"/>\n",
139
- " <TextEquiv>\n",
140
- " <Unicode>redan rest, begäres besked när, hvarthän och med hvil¬</Unicode>\n",
141
- " </TextEquiv>\n",
142
- " <PredScore pred_score=\"0.9951\"/>\n",
143
- " </TextLine>\n",
144
- " <TextLine id=\"line_region_1_16\" custom=\"readingOrder {index:16;}\">\n",
145
- " <Coords points=\"1626,1908 1610,1900 1438,1905 1335,1881 1233,1890 1128,1927 972,1885 829,1919 742,1897 653,1912 526,1899 400,1916 388,1972 409,2003 531,2038 613,2010 682,2034 734,2028 835,1989 1132,1978 1350,2000 1408,1986 1615,1978 1630,1967\"/>\n",
146
- " <TextEquiv>\n",
147
- " <Unicode>ket fartyg. Widare med posten.</Unicode>\n",
148
- " </TextEquiv>\n",
149
- " <PredScore pred_score=\"0.9889\"/>\n",
150
- " </TextLine>\n",
151
- " <TextLine id=\"line_region_1_17\" custom=\"readingOrder {index:17;}\">\n",
152
- " <Coords points=\"1481,2055 1499,2070 1669,2080 1875,2073 2057,2075 2086,2066 2099,2021 2087,1993 2067,2002 2030,2004 1972,1981 1943,1977 1879,1993 1847,1980 1788,1975 1700,1996 1674,1984 1658,1965 1641,1961 1614,1970 1498,1985 1484,2003\"/>\n",
153
- " <TextEquiv>\n",
154
- " <Unicode>Länsstyrelsen.</Unicode>\n",
155
- " </TextEquiv>\n",
156
- " <PredScore pred_score=\"0.998\"/>\n",
157
- " </TextLine>\n",
158
- " </TextRegion>\n",
159
- " <TextRegion id=\"region_2\" custom=\"readingOrder {index:2;}\">\n",
160
- " <Coords points=\"76,2163 96,2282 346,2358 334,2560 252,2714 339,3020 382,3062 2351,3123 2423,3087 2406,2277 2354,2270 2294,2168\"/>\n",
161
- " <TextLine id=\"line_region_2_0\" custom=\"readingOrder {index:0;}\">\n",
162
- " <Coords points=\"74,2283 119,2280 142,2271 184,2263 293,2261 307,2253 326,2228 351,2226 353,2216 350,2211 328,2201 317,2186 305,2180 203,2161 195,2156 195,2144 126,2144 126,2156 120,2160 101,2163 89,2169 74,2169\"/>\n",
163
- " <TextEquiv>\n",
164
- " <Unicode>Septemb.</Unicode>\n",
165
- " </TextEquiv>\n",
166
- " <PredScore pred_score=\"0.9955\"/>\n",
167
- " </TextLine>\n",
168
- " <TextLine id=\"line_region_2_1\" custom=\"readingOrder {index:1;}\">\n",
169
- " <Coords points=\"279,2244 356,2250 413,2285 675,2260 1527,2268 1618,2299 1705,2277 1969,2299 2273,2274 2293,2212 2266,2179 1773,2192 1615,2172 1414,2190 1287,2170 1119,2191 718,2163 592,2187 384,2176 352,2231\"/>\n",
170
- " <TextEquiv>\n",
171
- " <Unicode>1 från Wenersborg ankommit telegram så lydande:</Unicode>\n",
172
- " </TextEquiv>\n",
173
- " <PredScore pred_score=\"0.9686\"/>\n",
174
- " </TextLine>\n",
175
- " <TextLine id=\"line_region_2_2\" custom=\"readingOrder {index:2;}\">\n",
176
- " <Coords points=\"507,2338 677,2350 725,2366 760,2392 862,2345 1002,2349 1094,2339 1531,2349 1541,2333 1530,2297 1419,2263 1202,2254 1086,2279 1056,2250 977,2282 879,2265 760,2290 598,2248 526,2257 502,2274\"/>\n",
177
- " <TextEquiv>\n",
178
- " <Unicode>&quot;Polismästaren Götheborg</Unicode>\n",
179
- " </TextEquiv>\n",
180
- " <PredScore pred_score=\"0.9993\"/>\n",
181
- " </TextLine>\n",
182
- " <TextLine id=\"line_region_2_3\" custom=\"readingOrder {index:3;}\">\n",
183
- " <Coords points=\"2385,2395 2353,2377 2228,2384 2116,2359 1776,2363 1707,2337 1596,2366 1469,2351 1261,2370 1145,2341 946,2367 853,2351 738,2377 512,2346 429,2366 418,2422 439,2440 1589,2446 1709,2485 1838,2449 2353,2462 2383,2450\"/>\n",
184
- " <TextEquiv>\n",
185
- " <Unicode>Större inbrottstöld inatt hos Larsson &amp; Ström, Mel¬</Unicode>\n",
186
- " </TextEquiv>\n",
187
- " <PredScore pred_score=\"0.993\"/>\n",
188
- " </TextLine>\n",
189
- " <TextLine id=\"line_region_2_4\" custom=\"readingOrder {index:4;}\">\n",
190
- " <Coords points=\"405,2490 417,2531 732,2548 999,2534 2380,2563 2402,2543 2386,2500 2325,2482 2173,2488 2119,2468 1925,2463 1728,2486 1658,2480 1610,2452 1200,2467 1087,2449 879,2469 725,2444 419,2459\"/>\n",
191
- " <TextEquiv>\n",
192
- " <Unicode>brud. Tjufvarne tillgripit bland annat stort mörkbrun</Unicode>\n",
193
- " </TextEquiv>\n",
194
- " <PredScore pred_score=\"0.9872\"/>\n",
195
- " </TextLine>\n",
196
- " <TextLine id=\"line_region_2_5\" custom=\"readingOrder {index:5;}\">\n",
197
- " <Coords points=\"393,2591 408,2621 540,2629 586,2657 707,2630 1941,2643 2148,2665 2348,2648 2371,2627 2354,2587 2283,2573 2008,2577 1913,2552 1352,2567 1156,2537 1028,2553 411,2548\"/>\n",
198
- " <TextEquiv>\n",
199
- " <Unicode>häst, stor blås, åkkärra utan låda, diverse stycken</Unicode>\n",
200
- " </TextEquiv>\n",
201
- " <PredScore pred_score=\"0.9844\"/>\n",
202
- " </TextLine>\n",
203
- " <TextLine id=\"line_region_2_6\" custom=\"readingOrder {index:6;}\">\n",
204
- " <Coords points=\"387,2679 409,2738 609,2723 1589,2741 1705,2781 1828,2741 1918,2742 2025,2779 2152,2740 2294,2783 2382,2759 2397,2722 2381,2683 2297,2667 1589,2668 1458,2645 1232,2657 1149,2636 667,2662 468,2645 408,2652\"/>\n",
205
- " <TextEquiv>\n",
206
- " <Unicode>finare svarta kläderr, korderojer, doffel och svart drap,</Unicode>\n",
207
- " </TextEquiv>\n",
208
- " <PredScore pred_score=\"0.9897\"/>\n",
209
- " </TextLine>\n",
210
- " <TextLine id=\"line_region_2_7\" custom=\"readingOrder {index:7;}\">\n",
211
- " <Coords points=\"382,2801 401,2827 1855,2830 2027,2848 2378,2841 2400,2810 2380,2781 2147,2752 1763,2769 1204,2742 745,2755 470,2740 395,2754\"/>\n",
212
- " <TextEquiv>\n",
213
- " <Unicode>tryckt mörk sits, bomullsdukar, domestics, större, min¬</Unicode>\n",
214
- " </TextEquiv>\n",
215
- " <PredScore pred_score=\"0.9908\"/>\n",
216
- " </TextLine>\n",
217
- " <TextLine id=\"line_region_2_8\" custom=\"readingOrder {index:8;}\">\n",
218
- " <Coords points=\"396,2889 412,2916 1286,2944 1819,2922 2323,2942 2384,2921 2377,2878 2030,2845 1404,2861 1218,2842 936,2848 737,2822 563,2851 412,2840\"/>\n",
219
- " <TextEquiv>\n",
220
- " <Unicode>dre schalar, de fleste grå, ett parti häst och smörj¬</Unicode>\n",
221
- " </TextEquiv>\n",
222
- " <PredScore pred_score=\"0.9893\"/>\n",
223
- " </TextLine>\n",
224
- " <TextLine id=\"line_region_2_9\" custom=\"readingOrder {index:9;}\">\n",
225
- " <Coords points=\"382,3012 410,3026 710,3024 842,3054 1134,3027 1710,3037 1798,3061 1943,3029 2378,3024 2394,2982 2152,2939 2015,2958 1854,2935 1694,2957 1540,2942 1114,2956 496,2930 385,2950\"/>\n",
226
- " <TextEquiv>\n",
227
- " <Unicode>läder. Torde efterspanes Ersättning utlofvas. Beckman</Unicode>\n",
228
- " </TextEquiv>\n",
229
- " <PredScore pred_score=\"0.981\"/>\n",
230
- " </TextLine>\n",
231
- " <TextLine id=\"line_region_2_10\" custom=\"readingOrder {index:10;}\">\n",
232
- " <Coords points=\"1898,3097 1902,3109 1912,3118 2113,3107 2300,3106 2322,3102 2342,3088 2357,3042 2322,3038 2294,3047 2206,3053 2144,3043 2117,3028 2060,3038 2030,3028 2002,3030 1974,3043 1912,3061 1903,3073\"/>\n",
233
- " <TextEquiv>\n",
234
- " <Unicode>Rådman</Unicode>\n",
235
- " </TextEquiv>\n",
236
- " <PredScore pred_score=\"0.9986\"/>\n",
237
- " </TextLine>\n",
238
- " </TextRegion>\n",
239
- " <TextRegion id=\"region_3\" custom=\"readingOrder {index:3;}\">\n",
240
- " <Coords points=\"354,3149 355,3878 394,3955 455,3928 763,3930 939,3982 1444,3971 1716,3995 2353,3991 2400,3964 2410,3140 462,3118\"/>\n",
241
- " <TextLine id=\"line_region_3_0\" custom=\"readingOrder {index:0;}\">\n",
242
- " <Coords points=\"401,3199 413,3261 633,3232 1433,3228 1531,3244 1581,3278 1664,3246 1918,3264 2216,3227 2231,3169 2206,3139 2111,3157 1966,3146 1789,3163 1591,3141 1400,3159 1262,3142 1093,3163 769,3128 647,3158 436,3142 410,3152\"/>\n",
243
- " <TextEquiv>\n",
244
- " <Unicode>från Stockholm ankommit blegram så lydande:</Unicode>\n",
245
- " </TextEquiv>\n",
246
- " <PredScore pred_score=\"0.9856\"/>\n",
247
- " </TextLine>\n",
248
- " <TextLine id=\"line_region_3_1\" custom=\"readingOrder {index:1;}\">\n",
249
- " <Coords points=\"417,3282 419,3324 436,3335 1217,3324 1442,3367 1511,3338 1528,3312 1518,3266 1423,3239 1218,3269 979,3275 907,3267 852,3247 790,3251 692,3238 617,3251 538,3229 454,3251\"/>\n",
250
- " <TextEquiv>\n",
251
- " <Unicode>&quot;Till Poliskammaren i Gbrg.</Unicode>\n",
252
- " </TextEquiv>\n",
253
- " <PredScore pred_score=\"0.9966\"/>\n",
254
- " </TextLine>\n",
255
- " <TextLine id=\"line_region_3_2\" custom=\"readingOrder {index:2;}\">\n",
256
- " <Coords points=\"415,3404 439,3429 2359,3422 2391,3408 2385,3370 1376,3359 435,3365\"/>\n",
257
- " <TextEquiv>\n",
258
- " <Unicode>Hustru Emma Regina Lovisa Box, född Lundgren, som i förr¬</Unicode>\n",
259
- " </TextEquiv>\n",
260
- " <PredScore pred_score=\"0.9963\"/>\n",
261
- " </TextLine>\n",
262
- " <TextLine id=\"line_region_3_3\" custom=\"readingOrder {index:3;}\">\n",
263
- " <Coords points=\"2363,3463 414,3470 405,3515 432,3530 2360,3515\"/>\n",
264
- " <TextEquiv>\n",
265
- " <Unicode>gar förlupit sin vid Gustafsberg å Wermdön boende man efter</Unicode>\n",
266
- " </TextEquiv>\n",
267
- " <PredScore pred_score=\"0.9888\"/>\n",
268
- " </TextLine>\n",
269
- " <TextLine id=\"line_region_3_4\" custom=\"readingOrder {index:4;}\">\n",
270
- " <Coords points=\"393,3616 2187,3619 2330,3608 2345,3567 408,3564\"/>\n",
271
- " <TextEquiv>\n",
272
- " <Unicode>bodrägt af minst 100 Rdr och tros medfölja en Engelsman</Unicode>\n",
273
- " </TextEquiv>\n",
274
- " <PredScore pred_score=\"0.983\"/>\n",
275
- " </TextLine>\n",
276
- " <TextLine id=\"line_region_3_5\" custom=\"readingOrder {index:5;}\">\n",
277
- " <Coords points=\"406,3688 432,3707 2382,3709 2393,3694 2382,3661 434,3658 410,3665\"/>\n",
278
- " <TextEquiv>\n",
279
- " <Unicode>John Tolly, torde efterspanas, gripas och hitsändas, bön är ljus med</Unicode>\n",
280
- " </TextEquiv>\n",
281
- " <PredScore pred_score=\"0.975\"/>\n",
282
- " </TextLine>\n",
283
- " <TextLine id=\"line_region_3_6\" custom=\"readingOrder {index:6;}\">\n",
284
- " <Coords points=\"390,3745 410,3768 2367,3772 2357,3742 2151,3731 418,3727\"/>\n",
285
- " <TextEquiv>\n",
286
- " <Unicode>buunt har, blå ögon, långlagdt ansigte, landlas i öfre kaken</Unicode>\n",
287
- " </TextEquiv>\n",
288
- " <PredScore pred_score=\"0.9537\"/>\n",
289
- " </TextLine>\n",
290
- " <TextLine id=\"line_region_3_7\" custom=\"readingOrder {index:7;}\">\n",
291
- " <Coords points=\"388,3814 409,3841 2395,3850 2382,3813 410,3796\"/>\n",
292
- " <TextEquiv>\n",
293
- " <Unicode>Fattig korpulent, kan ej väl tala Svenska. Ett barn om 5 mi¬</Unicode>\n",
294
- " </TextEquiv>\n",
295
- " <PredScore pred_score=\"0.9332\"/>\n",
296
- " </TextLine>\n",
297
- " <TextLine id=\"line_region_3_8\" custom=\"readingOrder {index:8;}\">\n",
298
- " <Coords points=\"1952,3894 1939,3858 1919,3852 407,3858 384,3877 384,3902 407,3911 1919,3913\"/>\n",
299
- " <TextEquiv>\n",
300
- " <Unicode>nader tros medfölja. Stockholms Lundskansli¬</Unicode>\n",
301
- " </TextEquiv>\n",
302
- " <PredScore pred_score=\"0.9877\"/>\n",
303
- " </TextLine>\n",
304
- " <TextLine id=\"line_region_3_9\" custom=\"readingOrder {index:9;}\">\n",
305
- " <Coords points=\"2255,3952 2242,3931 2227,3927 1604,3935 1586,3950 1583,3979 1606,3988 2203,3983 2241,3977\"/>\n",
306
- " <TextEquiv>\n",
307
- " <Unicode>Sten Drakenberg</Unicode>\n",
308
- " </TextEquiv>\n",
309
- " <PredScore pred_score=\"0.9435\"/>\n",
310
- " </TextLine>\n",
311
- " </TextRegion>\n",
312
- " </Page>\n",
313
- "</PcGts>\n",
314
- "\n"
315
- ]
316
- }
317
- ],
318
- "source": [
319
- "from gradio_client import Client\n",
320
- "\n",
321
- "client = Client(\"http://127.0.0.1:7860/\")\n",
322
- "job = client.submit(\n",
323
- " \"https://datasets-server.huggingface.co/assets/Riksarkivet/test_images_demo/--/default/train/2/image/image.jpg\", # str (filepath or URL to image)\n",
324
- " api_name=\"/predict\",\n",
325
- ")\n",
326
- "\n",
327
- "print(job.result())\n"
328
- ]
329
- },
330
- {
331
- "cell_type": "code",
332
- "execution_count": null,
333
- "metadata": {},
334
- "outputs": [],
335
- "source": []
336
- }
337
- ],
338
- "metadata": {
339
- "kernelspec": {
340
- "display_name": "venv",
341
- "language": "python",
342
- "name": "python3"
343
- },
344
- "language_info": {
345
- "codemirror_mode": {
346
- "name": "ipython",
347
- "version": 3
348
- },
349
- "file_extension": ".py",
350
- "mimetype": "text/x-python",
351
- "name": "python",
352
- "nbconvert_exporter": "python",
353
- "pygments_lexer": "ipython3",
354
- "version": "3.10.9"
355
- },
356
- "orig_nbformat": 4
357
- },
358
- "nbformat": 4,
359
- "nbformat_minor": 2
360
- }