Commit da9d483
Project Team
Restore image display on results page; show image on error page
- ui_routes.py ui_verify_result: encode the saved image from disk as a
base64 data URL and pass it to results.html (was hardcoded None since
the async queue was introduced)
- ui_routes.py: add GET /ui/verify/image/{job_id} endpoint that serves
the raw image bytes directly from the shared volume
- verify_pending.html: add an <img> element pointing at the new image
endpoint, revealed in onFailed() so the user can see which label
failed alongside the error detail and Retry button1 parent 8be70a4 commit da9d483
2 files changed
+50
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
54 | 63 | | |
55 | 64 | | |
56 | 65 | | |
| |||
95 | 104 | | |
96 | 105 | | |
97 | 106 | | |
| 107 | + | |
98 | 108 | | |
99 | 109 | | |
100 | 110 | | |
| |||
171 | 181 | | |
172 | 182 | | |
173 | 183 | | |
| 184 | + | |
174 | 185 | | |
175 | 186 | | |
176 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
491 | | - | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
492 | 503 | | |
493 | 504 | | |
494 | 505 | | |
| |||
497 | 508 | | |
498 | 509 | | |
499 | 510 | | |
500 | | - | |
| 511 | + | |
501 | 512 | | |
502 | 513 | | |
503 | 514 | | |
| |||
552 | 563 | | |
553 | 564 | | |
554 | 565 | | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
555 | 592 | | |
556 | 593 | | |
557 | 594 | | |
| |||
0 commit comments