fix:Fixed the custom Tag selection

This commit is contained in:
2025-11-08 04:40:50 +05:30
parent 6fd52b9fb1
commit 82527cab81
6 changed files with 1146 additions and 99 deletions

View File

@@ -139,9 +139,17 @@ export async function analyzeDataset(file: File): Promise<AnalyzeResponse> {
/**
* Clean dataset - detect and anonymize PII
*/
export async function cleanDataset(file: File): Promise<CleanResponse> {
export async function cleanDataset(
file: File,
customStrategies?: Record<string, { enabled: boolean; strategy: string }>
): Promise<CleanResponse> {
const formData = new FormData();
formData.append('file', file);
// Add custom strategies if provided
if (customStrategies) {
formData.append('custom_strategies', JSON.stringify(customStrategies));
}
const response = await fetch(`${API_BASE_URL}/api/clean`, {
method: 'POST',