Open
zdevc
opened this issue 2 years ago
•
0 comments
(1) Describe the bug 简述
nebing模式下,中文学术润色高概率报错
UnboundLocalError: local variable 'response' referenced before assignment
(2) Screen Shot 截图
(3) Terminal Traceback 终端traceback(如有)
**
Traceback (most recent call last):
File "/home/zdevc/project/chatgpt_academic/env/lib/python3.10/site-packages/gradio/routes.py", line 395, in run_predict
output = await app.get_blocks().process_api(
File "/home/zdevc/project/chatgpt_academic/env/lib/python3.10/site-packages/gradio/blocks.py", line 1193, in process_api
result = await self.call_function(
File "/home/zdevc/project/chatgpt_academic/env/lib/python3.10/site-packages/gradio/blocks.py", line 930, in call_function
prediction = await anyio.to_thread.run_sync(
File "/home/zdevc/project/chatgpt_academic/env/lib/python3.10/site-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/home/zdevc/project/chatgpt_academic/env/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/home/zdevc/project/chatgpt_academic/env/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "/home/zdevc/project/chatgpt_academic/env/lib/python3.10/site-packages/gradio/utils.py", line 491, in async_iteration
return next(iterator)
File "/home/zdevc/project/chatgpt_academic/toolbox.py", line 61, in decorated
yield from f(txt_passon, llm_kwargs, plugin_kwargs, chatbot_with_cookie, history, system_prompt, *args)
File "/home/zdevc/project/chatgpt_academic/request_llm/bridge_all.py", line 239, in predict
yield from method(inputs, llm_kwargs, *args, **kwargs)
File "/home/zdevc/project/chatgpt_academic/request_llm/bridge_newbing.py", line 247, in predict
history.extend([inputs, preprocess_newbing_out(response)])
UnboundLocalError: local variable 'response' referenced before assignment
**
(4) Material to Help Reproduce Bugs 帮助我们复现的测试材料样本(如有)**
21世纪进入第三个十年,社会经济发展面临的不确定性越来越大,深刻改变了人们对未来经济发展的预期。地缘政治引发的经济逆全球化趋势导致了供应链和市场的分裂。2019年以来的新冠疫情,以系统性风险的形式同时冲击着生产和消费。另一方面,生成式人工智能出人意料的发展加速了机器对人类复杂劳动的替代。面对逆全球化、新冠疫情、技术变革三重冲击,组织和个人都承受这巨大压力,企图在经济发展放缓大背景下,维持自身生存和发展。