Skip to content

Commit

Permalink
feat: more space
Browse files Browse the repository at this point in the history
  • Loading branch information
kieranklaassen committed Aug 23, 2024
1 parent f1baf43 commit 07571a3
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions app/views/leva/workbench/_results_section.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="w-1/3 bg-gray-900 border-l border-gray-800 p-5 overflow-y-auto" data-controller="button-loader">
<div class="w-1/2 bg-gray-900 border-l border-gray-800 p-5 overflow-y-auto" data-controller="button-loader">
<!-- Runner Dropdown -->
<div class="mb-5">
<h3 class="text-sm font-semibold mb-2 text-indigo-300">Select Runner</h3>
Expand Down Expand Up @@ -48,12 +48,14 @@
<h4 class="text-xs font-semibold text-indigo-200 mb-1">Raw Prediction:</h4>
<pre class="text-sm text-gray-300 whitespace-pre-wrap bg-gray-700 p-2 rounded"><%= runner_result.prediction %></pre>
</div>
<div>
<h4 class="text-xs font-semibold text-indigo-200 my-2 gap-2">Parsed Predictions: <%= runner_result.dataset_record.recordable.extract_regex_pattern.to_s %></h4>
<% runner_result.parsed_predictions.each do |prediction| %>
<pre class="text-sm text-gray-300 whitespace-pre-wrap bg-gray-700 p-2 rounded"><%= prediction %></pre>
<% end %>
</div>
<% if runner_result.dataset_record.recordable.extract_regex_pattern %>
<div>
<h4 class="text-xs font-semibold text-indigo-200 my-2 gap-2">Parsed Predictions: <%= runner_result.dataset_record.recordable.extract_regex_pattern.to_s %></h4>
<% runner_result.parsed_predictions.each do |prediction| %>
<pre class="text-sm text-gray-300 whitespace-pre-wrap bg-gray-700 p-2 rounded"><%= prediction %></pre>
<% end %>
</div>
<% end %>
<div class="flex justify-between items-center mt-2 text-xs text-gray-500">
<p>Prompt version: <%= runner_result.prompt.version %></p>
<p>Run <%= time_ago_in_words(runner_result.created_at) %> ago</p>
Expand Down

0 comments on commit 07571a3

Please sign in to comment.