Spaces:
Sleeping
Sleeping
change dga for DGA in output
Browse files- app/static/script.js +1 -1
app/static/script.js
CHANGED
@@ -5,7 +5,7 @@ const translateText = async (text) => {
|
|
5 |
const inferJson = await inferResponse.json();
|
6 |
console.log(inferResponse);
|
7 |
console.log(inferJson);
|
8 |
-
const res = `domain:"${text}",probDGA:${inferJson.probability},
|
9 |
return res
|
10 |
};
|
11 |
|
|
|
5 |
const inferJson = await inferResponse.json();
|
6 |
console.log(inferResponse);
|
7 |
console.log(inferJson);
|
8 |
+
const res = `domain:"${text}",probDGA:${inferJson.probability},isDGA?:${inferJson.class}`;
|
9 |
return res
|
10 |
};
|
11 |
|