Spaces:
Sleeping
Sleeping
Update app.js
Browse files
app.js
CHANGED
|
@@ -1431,7 +1431,7 @@ app.get('/dataset/download', (req, res) => {
|
|
| 1431 |
|
| 1432 |
app.post('/dataset/clear', (req, res) => {
|
| 1433 |
const count = _dataset.length;
|
| 1434 |
-
_dataset =[];
|
| 1435 |
if (fs.existsSync(DATASET_PATH)) fs.unlinkSync(DATASET_PATH);
|
| 1436 |
log(`Dataset cleared — removed ${count} samples`, "OK");
|
| 1437 |
res.json({ cleared: count });
|
|
|
|
| 1431 |
|
| 1432 |
app.post('/dataset/clear', (req, res) => {
|
| 1433 |
const count = _dataset.length;
|
| 1434 |
+
_dataset =[];
|
| 1435 |
if (fs.existsSync(DATASET_PATH)) fs.unlinkSync(DATASET_PATH);
|
| 1436 |
log(`Dataset cleared — removed ${count} samples`, "OK");
|
| 1437 |
res.json({ cleared: count });
|