We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a01f1d4 commit e54d060Copy full SHA for e54d060
ldm/invoke/dynamic_prompts.py
@@ -100,8 +100,8 @@ def expand_prompts(
100
for command in commands:
101
sequence += 1
102
format = _get_fn_format(outdir, sequence)
103
- parent_conn.send(
104
- command + f' --fnformat="{format}"'
+ parent_conn.send_bytes(
+ (command + f' --fnformat="{format}"').encode('utf-8')
105
)
106
parent_conn.close()
107
else:
@@ -133,7 +133,7 @@ def __init__(self, connection: Connection):
133
def readline(self) -> str:
134
try:
135
if len(self.linebuffer) == 0:
136
- message = self.connection.recv()
+ message = self.connection.recv_bytes().decode('utf-8')
137
self.linebuffer = message.split("\n")
138
result = self.linebuffer.pop(0)
139
return result
0 commit comments