Spaces:
Running
Running
/tmp/data.json
Browse files
app.js
CHANGED
|
@@ -80,14 +80,14 @@ Analyze the following content in ${language}:
|
|
| 80 |
const jsonString = raw.slice(jsonStart, jsonEnd + 1);
|
| 81 |
const osintData = JSON.parse(jsonString);
|
| 82 |
|
| 83 |
-
fs.writeFileSync('/
|
| 84 |
|
| 85 |
exec('python3 render_report.py', (error, stdout, stderr) => {
|
| 86 |
if (error) {
|
| 87 |
console.error('Error generating report:', stderr);
|
| 88 |
res.status(500).send('Error rendering the report.');
|
| 89 |
} else {
|
| 90 |
-
res.sendFile(path.join(__dirname, '/
|
| 91 |
}
|
| 92 |
});
|
| 93 |
|
|
|
|
| 80 |
const jsonString = raw.slice(jsonStart, jsonEnd + 1);
|
| 81 |
const osintData = JSON.parse(jsonString);
|
| 82 |
|
| 83 |
+
fs.writeFileSync('/tmp/data.json', JSON.stringify(osintData));
|
| 84 |
|
| 85 |
exec('python3 render_report.py', (error, stdout, stderr) => {
|
| 86 |
if (error) {
|
| 87 |
console.error('Error generating report:', stderr);
|
| 88 |
res.status(500).send('Error rendering the report.');
|
| 89 |
} else {
|
| 90 |
+
res.sendFile(path.join(__dirname, '/tmp/OSINT_Report.html'));
|
| 91 |
}
|
| 92 |
});
|
| 93 |
|