                upload_id: uploadId,
                            class_names: classNames
                        })
                    });
                    const result = await response.json();
                    document.getElementById('loading-waiter').style.display = 'none';
                    if (result.success) {
                        isDataImported = true;
                        document.getElementById('summary-tab').classList.remove('disabled');
                        displaySummary(result.