Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
gwtnb committed Jan 28, 2017
1 parent 35a24bd commit 77d89af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ def do_POST(self):

if "step" in form:
if form["step"][0].decode() == "S":
paintor.colorize_s(id_str, blur=blur)
painter.colorize_s(id_str, blur=blur)
if form["step"][0].decode() == "L":
paintor.colorize_l(id_str)
painter.colorize_l(id_str)
else:
paintor.colorize(id_str, blur=blur)
painter.colorize(id_str, blur=blur)

content = bytes("{ 'message':'The command Completed Successfully' , 'Status':'200 OK','success':true , 'used':"+str(args.gpu)+"}", "UTF-8")
self.send_response(200)
Expand All @@ -100,7 +100,7 @@ def do_POST(self):

print('GPU: {}'.format(args.gpu))

paintor = cgi_exe.Painter( gpu = args.gpu )
painter = cgi_exe.Painter( gpu = args.gpu )

httpd = http.server.HTTPServer(( args.host, args.port ), MyHandler)
print('serving at', args.host, ':', args.port, )
Expand Down

0 comments on commit 77d89af

Please sign in to comment.