diff --git a/app/views/leva/workbench/_results_section.html.erb b/app/views/leva/workbench/_results_section.html.erb index 2b73d04..bb900ea 100644 --- a/app/views/leva/workbench/_results_section.html.erb +++ b/app/views/leva/workbench/_results_section.html.erb @@ -1,4 +1,4 @@ -
+

Select Runner

@@ -48,12 +48,14 @@

Raw Prediction:

<%= runner_result.prediction %>
-
-

Parsed Predictions: <%= runner_result.dataset_record.recordable.extract_regex_pattern.to_s %>

- <% runner_result.parsed_predictions.each do |prediction| %> -
<%= prediction %>
- <% end %> -
+ <% if runner_result.dataset_record.recordable.extract_regex_pattern %> +
+

Parsed Predictions: <%= runner_result.dataset_record.recordable.extract_regex_pattern.to_s %>

+ <% runner_result.parsed_predictions.each do |prediction| %> +
<%= prediction %>
+ <% end %> +
+ <% end %>

Prompt version: <%= runner_result.prompt.version %>

Run <%= time_ago_in_words(runner_result.created_at) %> ago