diff --git a/llmage/utils.py b/llmage/utils.py index b11aba7..e7be7d5 100644 --- a/llmage/utils.py +++ b/llmage/utils.py @@ -17,7 +17,7 @@ from ahserver.filestorage import FileStorage async def append_new_llmoutput(webpath, output): fs = FileStorage() p = fs.realPath(webpath) - if not isinstance(output, str): + if isinstance(output, str): output = json.loads(output) bin = await read_webpath(webpath) io = json.loads(bin.decode('utf-8'))