diff --git a/app/views/documents/_recommendation_list.html.erb b/app/views/documents/_recommendation_list.html.erb index 1fd187d1..87c668ad 100644 --- a/app/views/documents/_recommendation_list.html.erb +++ b/app/views/documents/_recommendation_list.html.erb @@ -25,7 +25,7 @@
"><%= exception.inference_reason %>
<% end %> - <% if exceptions.present? %> + <% if exceptions.present? && exceptions.first.inference_model_name.present? %>
Generated by <%= exceptions.first.inference_model_name %>
<% end %> diff --git a/app/views/documents/_summary.html.erb b/app/views/documents/_summary.html.erb index a717ef82..f2cb0a64 100644 --- a/app/views/documents/_summary.html.erb +++ b/app/views/documents/_summary.html.erb @@ -12,7 +12,7 @@ Summarizing... <% end %> - <% if summary_inference.present? %> + <% if summary_inference.present? && summary_inference.inference_model_name.present? %>
Generated by <%= summary_inference.inference_model_name %>
<% end %>