mirror of
https://github.com/PlatypusPus/MushroomEmpire.git
synced 2026-02-07 22:18:59 +00:00
fix:Fixed the custom Tag selection
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user