MCPcopy Create free account
hub / github.com/chinawithfrank/ChatBotCourse / main

Function main

tf_classify_demo/classify.py:63–71  ·  view source on GitHub ↗
(is_predict)

Source from the content-addressed store, hash-verified

61 self.wfile.write(bytes(str(group_id), "utf-8"))
62
63def main(is_predict):
64 if is_predict:
65 saver.restore(sess, 'data/model/model')
66 #predict(samples, sess, x, y, y_, train_step)
67 myServer = HTTPServer(("0.0.0.0", 5001), MyServer)
68 print("begin listen")
69 myServer.serve_forever()
70 else:
71 train(samples, sess, x, y, y_, train_step)
72
73
74if __name__ == '__main__':

Callers 1

classify.pyFile · 0.70

Calls 1

trainFunction · 0.70

Tested by

no test coverage detected