File size: 25,870 Bytes
5ebeb73
 
 
 
deef83a
5ebeb73
 
 
 
 
 
 
 
 
 
 
deef83a
5ebeb73
deef83a
5ebeb73
deef83a
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
 
 
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
 
 
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
 
4c85050
deef83a
4c85050
deef83a
 
 
 
 
 
 
 
4c85050
5ebeb73
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
deef83a
4c85050
 
deef83a
4c85050
deef83a
4c85050
deef83a
4c85050
 
deef83a
4c85050
deef83a
4c85050
deef83a
4c85050
 
deef83a
4c85050
deef83a
4c85050
deef83a
4c85050
 
deef83a
4c85050
deef83a
4c85050
deef83a
4c85050
 
deef83a
4c85050
deef83a
4c85050
deef83a
4c85050
 
deef83a
4c85050
deef83a
4c85050
deef83a
4c85050
 
deef83a
4c85050
deef83a
4c85050
deef83a
4c85050
 
deef83a
4c85050
deef83a
4c85050
 
 
deef83a
 
4c85050
deef83a
4c85050
deef83a
4c85050
5ebeb73
 
 
 
 
 
 
 
 
 
 
 
deef83a
5ebeb73
 
 
 
 
4c85050
 
 
 
 
 
 
5ebeb73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Loaded as API: http://127.0.0.1:7860/ ✔\n",
      "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n",
      "<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",
      "    <Metadata>\n",
      "        <Creator>Swedish National Archives</Creator>\n",
      "        <Created>2023-08-21, 13:28:06</Created>\n",
      "    </Metadata>\n",
      "    <Page imageFilename=\"page_xml.xml\" imageWidth=\"4885\" imageHeight=\"4066\">\n",
      "    <TextRegion id=\"region_0\" custom=\"readingOrder {index:0;}\">\n",
      "        <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",
      "    <TextLine id=\"line_region_0_0\" custom=\"readingOrder {index:0;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>År 1865.</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9482\"/>\n",
      "            </TextLine>\n",
      "    </TextRegion>\n",
      "    <TextRegion id=\"region_1\" custom=\"readingOrder {index:1;}\">\n",
      "        <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",
      "    <TextLine id=\"line_region_1_0\" custom=\"readingOrder {index:0;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>Augusti 21. från Wexiö ankommit, telegram så lydande:</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.987\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_1_1\" custom=\"readingOrder {index:1;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>&quot;Poliskammaren i Götheborg. Delägaren i Torps</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9985\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_1_2\" custom=\"readingOrder {index:2;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>jernbruksbonden Johannes Nilsson från Skägga¬</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9878\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_1_3\" custom=\"readingOrder {index:3;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>lösa har i tisdags på jernväg afrest till Götheborg</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9875\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_1_4\" custom=\"readingOrder {index:4;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>ändamål att begifva sig till America Enligt</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9967\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_1_5\" custom=\"readingOrder {index:5;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>anmälan har Nilsson medtagit omkring 10,000</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9992\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_1_6\" custom=\"readingOrder {index:6;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>R.d, deraf en del tillhör jernbruket samt lemnat</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9866\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_1_7\" custom=\"readingOrder {index:7;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>auppgjorda sina affärer i hemorten, uppgående</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9766\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_1_8\" custom=\"readingOrder {index:8;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>till betydliga belopp. Nilsson år 5 fot 10 tum, har</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9926\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_1_9\" custom=\"readingOrder {index:9;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>omidig vext, blå ögon, mörka hål, brunaktigt</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9871\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_1_10\" custom=\"readingOrder {index:10;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>kind- och hakskägg. Under vistandet i Göteborg</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9805\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_1_11\" custom=\"readingOrder {index:11;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>har han troligen besökt handlanderne G. Berg¬</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9983\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_1_12\" custom=\"readingOrder {index:12;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>gren och Carlström. Poliskammaren torde efter</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9951\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_1_13\" custom=\"readingOrder {index:13;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>spana Nilsson och, om han anträffas, anställa för</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9902\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_1_14\" custom=\"readingOrder {index:14;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>hör samt med honom lagligen förfara. Skulle han</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9878\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_1_15\" custom=\"readingOrder {index:15;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>redan rest, begäres besked när, hvarthän och med hvil¬</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9951\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_1_16\" custom=\"readingOrder {index:16;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>ket fartyg. Widare med posten.</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9889\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_1_17\" custom=\"readingOrder {index:17;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>Länsstyrelsen.</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.998\"/>\n",
      "            </TextLine>\n",
      "    </TextRegion>\n",
      "    <TextRegion id=\"region_2\" custom=\"readingOrder {index:2;}\">\n",
      "        <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",
      "    <TextLine id=\"line_region_2_0\" custom=\"readingOrder {index:0;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>Septemb.</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9955\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_2_1\" custom=\"readingOrder {index:1;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>1 från Wenersborg ankommit telegram så lydande:</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9686\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_2_2\" custom=\"readingOrder {index:2;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>&quot;Polismästaren Götheborg</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9993\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_2_3\" custom=\"readingOrder {index:3;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>Större inbrottstöld inatt hos Larsson &amp; Ström, Mel¬</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.993\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_2_4\" custom=\"readingOrder {index:4;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>brud. Tjufvarne tillgripit bland annat stort mörkbrun</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9872\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_2_5\" custom=\"readingOrder {index:5;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>häst, stor blås, åkkärra utan låda, diverse stycken</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9844\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_2_6\" custom=\"readingOrder {index:6;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>finare svarta kläderr, korderojer, doffel och svart drap,</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9897\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_2_7\" custom=\"readingOrder {index:7;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>tryckt mörk sits, bomullsdukar, domestics, större, min¬</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9908\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_2_8\" custom=\"readingOrder {index:8;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>dre schalar, de fleste grå, ett parti häst och smörj¬</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9893\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_2_9\" custom=\"readingOrder {index:9;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>läder. Torde efterspanes Ersättning utlofvas. Beckman</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.981\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_2_10\" custom=\"readingOrder {index:10;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>Rådman</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9986\"/>\n",
      "            </TextLine>\n",
      "    </TextRegion>\n",
      "    <TextRegion id=\"region_3\" custom=\"readingOrder {index:3;}\">\n",
      "        <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",
      "    <TextLine id=\"line_region_3_0\" custom=\"readingOrder {index:0;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>från Stockholm ankommit blegram så lydande:</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9856\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_3_1\" custom=\"readingOrder {index:1;}\">\n",
      "                <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",
      "                                <TextEquiv>\n",
      "            <Unicode>&quot;Till Poliskammaren i Gbrg.</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9966\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_3_2\" custom=\"readingOrder {index:2;}\">\n",
      "                <Coords points=\"415,3404 439,3429 2359,3422 2391,3408 2385,3370 1376,3359 435,3365\"/>\n",
      "                                <TextEquiv>\n",
      "            <Unicode>Hustru Emma Regina Lovisa Box, född Lundgren, som i förr¬</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9963\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_3_3\" custom=\"readingOrder {index:3;}\">\n",
      "                <Coords points=\"2363,3463 414,3470 405,3515 432,3530 2360,3515\"/>\n",
      "                                <TextEquiv>\n",
      "            <Unicode>gar förlupit sin vid Gustafsberg å Wermdön boende man efter</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9888\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_3_4\" custom=\"readingOrder {index:4;}\">\n",
      "                <Coords points=\"393,3616 2187,3619 2330,3608 2345,3567 408,3564\"/>\n",
      "                                <TextEquiv>\n",
      "            <Unicode>bodrägt af minst 100 Rdr och tros medfölja en Engelsman</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.983\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_3_5\" custom=\"readingOrder {index:5;}\">\n",
      "                <Coords points=\"406,3688 432,3707 2382,3709 2393,3694 2382,3661 434,3658 410,3665\"/>\n",
      "                                <TextEquiv>\n",
      "            <Unicode>John Tolly, torde efterspanas, gripas och hitsändas, bön är ljus med</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.975\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_3_6\" custom=\"readingOrder {index:6;}\">\n",
      "                <Coords points=\"390,3745 410,3768 2367,3772 2357,3742 2151,3731 418,3727\"/>\n",
      "                                <TextEquiv>\n",
      "            <Unicode>buunt har, blå ögon, långlagdt ansigte, landlas i öfre kaken</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9537\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_3_7\" custom=\"readingOrder {index:7;}\">\n",
      "                <Coords points=\"388,3814 409,3841 2395,3850 2382,3813 410,3796\"/>\n",
      "                                <TextEquiv>\n",
      "            <Unicode>Fattig korpulent, kan ej väl tala Svenska. Ett barn om 5 mi¬</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9332\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_3_8\" custom=\"readingOrder {index:8;}\">\n",
      "                <Coords points=\"1952,3894 1939,3858 1919,3852 407,3858 384,3877 384,3902 407,3911 1919,3913\"/>\n",
      "                                <TextEquiv>\n",
      "            <Unicode>nader tros medfölja. Stockholms Lundskansli¬</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9877\"/>\n",
      "            </TextLine>\n",
      "    <TextLine id=\"line_region_3_9\" custom=\"readingOrder {index:9;}\">\n",
      "                <Coords points=\"2255,3952 2242,3931 2227,3927 1604,3935 1586,3950 1583,3979 1606,3988 2203,3983 2241,3977\"/>\n",
      "                                <TextEquiv>\n",
      "            <Unicode>Sten Drakenberg</Unicode>\n",
      "        </TextEquiv>\n",
      "                        <PredScore pred_score=\"0.9435\"/>\n",
      "            </TextLine>\n",
      "    </TextRegion>\n",
      "    </Page>\n",
      "</PcGts>\n",
      "\n"
     ]
    }
   ],
   "source": [
    "from gradio_client import Client\n",
    "\n",
    "client = Client(\"http://127.0.0.1:7860/\")\n",
    "job = client.submit(\n",
    "    \"https://datasets-server.huggingface.co/assets/Riksarkivet/test_images_demo/--/default/train/2/image/image.jpg\",  # str (filepath or URL to image)\n",
    "    api_name=\"/predict\",\n",
    ")\n",
    "\n",
    "print(job.result())\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "venv",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.9"
  },
  "orig_nbformat": 4
 },
 "nbformat": 4,
 "nbformat_minor": 2
}