decode
This commit is contained in:
parent
7e8607d097
commit
a192910cb6
1 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,8 @@ async def handler(event):
|
||||||
'prompt': prompt,
|
'prompt': prompt,
|
||||||
}), headers=headers) as response:
|
}), headers=headers) as response:
|
||||||
async for line in response.content:
|
async for line in response.content:
|
||||||
yield line
|
line = line.decode('utf-8').strip()
|
||||||
|
yield line[5:]
|
||||||
|
|
||||||
runpod.serverless.start({
|
runpod.serverless.start({
|
||||||
"handler": handler,
|
"handler": handler,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue