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

启智+ gradio 启动的服务,前端出现error,后台报错 AttributeError: 'NoneType' object has no attribute 'temperature' #102

Open
salile opened this issue Jul 2, 2023 · 3 comments

Comments

@salile
Copy link

salile commented Jul 2, 2023

hello~ 启智+ gradio 启动的服务
前端:
image

后台:
完整traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/gradio/routes.py", line 289, in run_predict
output = await app.blocks.process_api(
File "/usr/local/lib/python3.8/dist-packages/gradio/blocks.py", line 990, in process_api
result = await self.call_function(fn_index, inputs, iterator)
File "/usr/local/lib/python3.8/dist-packages/gradio/blocks.py", line 832, in call_function
prediction = await anyio.to_thread.run_sync(
File "/usr/local/lib/python3.8/dist-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.8/dist-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.8/dist-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "app.py", line 215, in predict
resp = knowladge_based_chat_llm.get_knowledge_based_answer(
File "app.py", line 102, in get_knowledge_based_answer
self.llm.temperature = temperature
AttributeError: 'NoneType' object has no attribute 'temperature'

@Lilacs
Copy link

Lilacs commented Jul 22, 2023

遇到同样的问题
CleanShot 2023-07-23 at 04 10 47@2x
CleanShot 2023-07-23 at 04 11 12@2x

@Cordy27
Copy link

Cordy27 commented Jan 3, 2024

同样的问题有人解决了吗

@thomas-yanxin
Copy link
Member

最近我修复一下

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

4 participants