ch22: new README.md and minor edits

This commit is contained in:
Luciano Ramalho
2021-04-24 20:49:53 -03:00
parent eee989cbd6
commit 063a540868
5 changed files with 51 additions and 12 deletions

View File

@@ -11,7 +11,7 @@ index = {}
@route('/')
def form():
return static_file('form.html', root = 'static/')
return static_file('form.html', root='static/')
@route('/search')
@@ -28,10 +28,8 @@ def search():
def main(port):
global index
index = InvertedIndex()
host = 'localhost'
run(host='localhost', port=port, debug=True)
if __name__ == '__main__':
main(8000)