Skip to content

Commit 8e6d6aa

Browse files
author
李闯
committed
change chatbot bind ip
1 parent dfd5c3e commit 8e6d6aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

chatbotv1/src/main/java/com/shareditor/chatbotv1/Searcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public void initChannel(SocketChannel ch) throws Exception {
3636
p.addLast("handler", new HttpServerInboundHandler());
3737
}
3838
});
39-
ChannelFuture f = b.bind("127.0.0.1", 8765).sync();
39+
ChannelFuture f = b.bind("0.0.0.0", 8765).sync();
4040
f.channel().closeFuture().sync();
4141
}
4242

chatbotv2/one_lstm_sequence_generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def main():
123123
net = tflearn.regression(net, optimizer='sgd', learning_rate=0.1,
124124
loss='mean_square')
125125
model = tflearn.DNN(net)
126-
model.fit(X, Y, n_epoch=500, batch_size=100,snapshot_epoch=False,show_metric=True)
126+
model.fit(X, Y, n_epoch=1000, batch_size=1,snapshot_epoch=False,show_metric=True)
127127
model.save("model")
128128
predict = model.predict([test_X])
129129
#print predict

0 commit comments

Comments
 (0)