Skip to content

Commit

Permalink
fix commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jookie committed Aug 20, 2024
1 parent e841d8a commit d5185ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/run-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { exec } from 'child_process';

export default function handler(req, res) {
exec('python3 path_to_your_script.py', (error, stdout, stderr) => {
exec('python3 ./../../scripts/train.py', (error, stdout, stderr) => {
if (error) {
res.status(500).json({ error: stderr });
} else {
Expand Down

0 comments on commit d5185ef

Please sign in to comment.