Toggle navigation
Toggle navigation
This project
Loading...
Sign in
박태권
/
menu_recommend_webpage
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
5
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
taegwon
2022-06-09 06:19:50 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
586d509ed095a94274c2c46d91c68b0ce478fa71
586d509e
1 parent
9a6f2acd
app.js real final
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
CHATBOT/app.js
CHATBOT/app.js
View file @
586d509
...
...
@@ -560,7 +560,7 @@ async function intersection()
{
const
spawn
=
await
require
(
'child_process'
).
spawn
;
for
(
var
i
=
0
,
j
=
0
;
i
<
3
;
i
+=
2
,
j
++
)
{
var
result
=
await
spawn
(
'python'
,
[
'
/home/ec2-user/menu_recommand_webpage/
CHATBOT/fileread_practice.py'
,
directory
[
i
][
Number
(
choosen
[
i
])
-
1
],
directory
[
i
+
1
][
Number
(
choosen
[
i
+
1
])
-
1
],
save_file_name
[
j
]]);
var
result
=
await
spawn
(
'python'
,
[
'CHATBOT/fileread_practice.py'
,
directory
[
i
][
Number
(
choosen
[
i
])
-
1
],
directory
[
i
+
1
][
Number
(
choosen
[
i
+
1
])
-
1
],
save_file_name
[
j
]]);
await
result
.
stdout
.
on
(
'data'
,
function
(
data
)
{
console
.
log
(
data
.
toString
());
});
...
...
@@ -568,14 +568,14 @@ async function intersection()
console
.
log
(
data
.
toString
());
});
}
result
=
await
spawn
(
'python'
,
[
'
/home/ec2-user/menu_recommand_webpage/
CHATBOT/fileread_practice.py'
,
save_file_name
[
0
],
save_file_name
[
1
],
save_file_name
[
2
]]);
result
=
await
spawn
(
'python'
,
[
'CHATBOT/fileread_practice.py'
,
save_file_name
[
0
],
save_file_name
[
1
],
save_file_name
[
2
]]);
result
.
stdout
.
on
(
'data'
,
function
(
data
)
{
console
.
log
(
data
.
toString
());
});
await
result
.
stderr
.
on
(
'data'
,
function
(
data
)
{
console
.
log
(
data
.
toString
());
});
result
=
await
spawn
(
'python'
,
[
'
/home/ec2-user/menu_recommand_webpage/
CHATBOT/fileread_practice.py'
,
save_file_name
[
2
],
directory
[
4
][
Number
(
choosen
[
4
])
-
1
],
save_file_name
[
3
]]);
result
=
await
spawn
(
'python'
,
[
'CHATBOT/fileread_practice.py'
,
save_file_name
[
2
],
directory
[
4
][
Number
(
choosen
[
4
])
-
1
],
save_file_name
[
3
]]);
result
.
stdout
.
on
(
'data'
,
function
(
data
)
{
console
.
log
(
data
.
toString
());
});
...
...
Please
register
or
login
to post a comment