Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
Small fixes to run benchmark samples (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
granawkins authored Jan 20, 2024
1 parent baa69a1 commit 59d7be3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion benchmarks/benchmark_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class BenchmarkResult:
default=None, metadata={"formatted_name": "Test output", "display": "code"}
)
run_error: Optional[str] = attr.ib(
default=None, metadata={"aggregation": "percent"}
default=None, metadata={"formatted_name": "Run Error", "display": "code"}
)
response: Optional[str] = attr.ib(
default=None, metadata={"formatted_name": "Analysis", "display": "text"}
Expand Down
4 changes: 2 additions & 2 deletions mentat/resources/templates/benchmark.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@
<h1>{{ display_name|capitalize }}</h1>
<div class="content">
{% if section.type == "text" %}
{{ section.content }}
{{ section.content |escape }}
{% elif section.type == "code" %}
<pre><code>{{ section.content }}</code></pre>
<pre><code>{{ section.content |escape }}</code></pre>
{% elif section.type == "json" %}
<pre>{{ section.content |tojson(indent=4)|safe}}</pre>
{% elif section.type == "transcript" %}
Expand Down

0 comments on commit 59d7be3

Please sign in to comment.