Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

tableOutput.html 1.2 KB

You have to be logged in to leave a comment. Sign In
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
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width" />
  6. <title>{{ config.description | default('Eval Output') }}</title>
  7. <style>
  8. body {
  9. font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial,
  10. sans-serif;
  11. }
  12. table,
  13. th,
  14. td {
  15. border: 1px solid black;
  16. border-collapse: collapse;
  17. text-align: left;
  18. word-break: break-all;
  19. }
  20. th,
  21. td {
  22. padding: 5px;
  23. min-width: 200px;
  24. white-space: pre-line;
  25. vertical-align: top;
  26. }
  27. tr > td[data-content^='[PASS]'] {
  28. color: green;
  29. }
  30. tr > td[data-content^='[FAIL]'] {
  31. color: #ad0000;
  32. }
  33. </style>
  34. </head>
  35. <body>
  36. <table>
  37. <thead>
  38. {% for header in table[0] %}
  39. <th>{{ header }}</th>
  40. {% endfor %}
  41. </thead>
  42. <tbody>
  43. {% for row in table.slice(1) %}
  44. <tr>
  45. {% for cell in row %}
  46. <td data-content="{{ cell | escape }}">{{ cell }}</td>
  47. {% endfor %}
  48. </tr>
  49. {% endfor %}
  50. </tbody>
  51. </table>
  52. </body>
  53. </html>
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...