Skip to content

Commit fb72933

Browse files
author
sjvasquez
committed
fix byte string for python 3, Fixes sjvasquez#10
1 parent d88320c commit fb72933

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: demo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def _sample(self, lines, biases=None, styles=None):
7474
if styles is not None:
7575
for i, (cs, style) in enumerate(zip(lines, styles)):
7676
x_p = np.load('styles/style-{}-strokes.npy'.format(style))
77-
c_p = np.load('styles/style-{}-chars.npy'.format(style))
77+
c_p = np.load('styles/style-{}-chars.npy'.format(style)).tostring().decode('utf-8')
7878

7979
c_p = str(c_p) + " " + cs
8080
c_p = drawing.encode_ascii(c_p)

0 commit comments

Comments
 (0)