diff --git a/src/renderer/components/MainAppPanel.tsx b/src/renderer/components/MainAppPanel.tsx index 019f1c3595bffed026f270523f73baa47d8f4cdb..cdf064ffa700a9ceb1c2526f93e672d0d48950b7 100644 --- a/src/renderer/components/MainAppPanel.tsx +++ b/src/renderer/components/MainAppPanel.tsx @@ -48,6 +48,12 @@ export default function MainAppPanel({ // For most generated models this will be a path to a directory if (model.stored_in_filesystem) { model_filename = model.local_path; + + // If stored_in_filesystem isn't set but model_filename is then + // just take model_filename directly + // This is an imported model and this should hold a full path + } else if (model.json_data?.model_filename) { + model_filename = model.json_data.model_filename; } }