Hammad,
I would be interested in your Python script for interfacing with the node server.
I considered using python myself, but ended up going a different route.
I will release all of my code for my entry once the finalists are announced including the dataset. I will try to include a small tutorial if my submission was successful with the new LPP. I believe that artificial intelligence should be open source and maintain no censorship.
Hammad,
That’s a brilliant idea! I wish you the very best of luck in
the AISB contest. I ran this code with, “python pyhost.py”
at the command line:Filename: pyhost.py
import SimpleHTTPServer
import SocketServer
PORT = 8080
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = SocketServer.TCPServer(("", PORT), Handler)
print "Chat Bot served at http://localhost:", PORT
httpd.serve_forever()And, in the same directory, I saved a simple JavaScript
chatbot index.html file at http : // localhost:8080, and it worked._______________________________________________
Citation: http://2ality.com/2014/06/simple-http-server.html
Thank you! I chose port 1337 because I anticipated others using different ports for their applications.