Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chatglm3修订报错 #48

Open
litter-bird-big-dream opened this issue Feb 29, 2024 · 0 comments
Open

chatglm3修订报错 #48

litter-bird-big-dream opened this issue Feb 29, 2024 · 0 comments

Comments

@litter-bird-big-dream
Copy link

点击后总是报格式不对的错误

Traceback (most recent call last):
File "D:\ProgramData\anaconda3\envs\CreativeChatGLM-master\Lib\site-packages\gradio\queueing.py", line 495, in call_prediction
output = await route_utils.call_process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ProgramData\anaconda3\envs\CreativeChatGLM-master\Lib\site-packages\gradio\route_utils.py", line 235, in call_process_api
output = await app.get_blocks().process_api(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ProgramData\anaconda3\envs\CreativeChatGLM-master\Lib\site-packages\gradio\blocks.py", line 1636, in process_api
data = await anyio.to_thread.run_sync(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ProgramData\anaconda3\envs\CreativeChatGLM-master\Lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ProgramData\anaconda3\envs\CreativeChatGLM-master\Lib\site-packages\anyio_backends_asyncio.py", line 2144, in run_sync_in_worker_thread
return await future
^^^^^^^^^^^^
File "D:\ProgramData\anaconda3\envs\CreativeChatGLM-master\Lib\site-packages\anyio_backends_asyncio.py", line 851, in run
result = context.run(func, *args)
^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ProgramData\anaconda3\envs\CreativeChatGLM-master\Lib\site-packages\gradio\blocks.py", line 1458, in postprocess_data
prediction_value = block.postprocess(prediction_value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ProgramData\anaconda3\envs\CreativeChatGLM-master\Lib\site-packages\gradio\components\chatbot.py", line 214, in postprocess
raise TypeError(
TypeError: Expected a list of lists or list of tuples. Received: {'role': 'user', 'content': '你是谁'}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant