Skip to content

Commit

Permalink
Merge pull request #4 from gwtnb/fix-typo
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
taizan committed Jan 29, 2017
2 parents 25bc93c + 77d89af commit 471a05d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cgi-bin/paint_x2_unet/cgi_exe.py
Expand Up @@ -19,7 +19,7 @@

import unet
import lnet
class Paintor:
class Painter:
def __init__(self, gpu = 0):

print("start")
Expand Down
8 changes: 4 additions & 4 deletions server.py
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.Paintor( 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 471a05d

Please sign in to comment.