Seungmi

최종수정

Showing 1 changed file with 1 additions and 10 deletions
......@@ -12,15 +12,7 @@ var app = express();
const { info } = require('console');
var { PythonShell } = require('python-shell');
var pyshell = new PythonShell('weather_chat.py');
let options = {
mode: 'text',
pythonPath: '',
pythonOptions: ['-u'],
scriptPath: '',
args: ['value1', 'value2', 'value3']
};
let pyshell = new PythonShell('weather_chat.py', {mode: 'text'});
app.use(bodyParser.json());
......@@ -99,7 +91,6 @@ function chatWeather(replyToken){
pyshell.send('request')
pyshell.on('message', function(data){
console.log(data);
PM = data;
});
......