zhaozh10 / chatcad Goto Github PK
View Code? Open in Web Editor NEW[COMMSENG'24, TMI'24] Interactive Computer-Aided Diagnosis using LLMs
License: Apache License 2.0
[COMMSENG'24, TMI'24] Interactive Computer-Aided Diagnosis using LLMs
License: Apache License 2.0
(cad) zzz@zzz:~/yz/AllVscodes/ChatCAD-main$ python3 web.py
/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/revChatGPT/init.py:29: UserWarning: The current Python is not a recommended version, 3.10+ is recommended
import("warnings").warn(
Running on local URL: http://127.0.0.1:4900
To create a public link, set share=True
in launch()
.
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 408, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/fastapi/applications.py", line 1106, in call
await super().call(scope, receive, send)
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/starlette/applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/starlette/middleware/errors.py", line 184, in call
raise exc
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in call
await self.app(scope, receive, _send)
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/starlette/middleware/cors.py", line 83, in call
await self.app(scope, receive, send)
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 79, in call
raise exc
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in call
raise e
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in call
await self.app(scope, receive, send)
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/starlette/routing.py", line 718, in call
await route.handle(scope, receive, send)
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/starlette/routing.py", line 66, in app
response = await func(request)
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/fastapi/routing.py", line 274, in app
raw_response = await run_endpoint_function(
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/fastapi/routing.py", line 193, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
return await anyio.to_thread.run_sync(func, *args)
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/gradio/routes.py", line 263, in api_info
return gradio.blocks.get_api_info(config, serialize) # type: ignore
File "/home/zzz/anaconda3/envs/cad/lib/python3.9/site-packages/gradio/blocks.py", line 504, in get_api_info
serializer = serializing.COMPONENT_MAPPINGtype
KeyError: 'dataset'
Hi, thanks for the amazing project, however I am not able to get the gradio web ui running (shows 初始化失败,请输入正确的openai key。I have tried your testing code and it works well with my api key) Do you have a code sample for running inference without using the web ui? Thanks a lot
thanks for your excellent work. Can you provide a training script for the generator?
Hello, @zhaozh10
First of all, thank you for sharing your great work!
I recently read your ChatCAD+ paper and have a question about a specific part, so I am creating an issue here.
I am particularly curious about the report refinement method. The paper mentions "LLM to refine its preliminary report with retrieve k reports, and generate the enhanced report." Does this mean you provided the LLM with the top k reports and used a prompt to create an enhanced report? Could you please share the instructions or process you used for this?
Your work is impressive and has greatly inspired my research. How can I fine-tune your code using my own dataset, or how can I reproduce your paper from scratch?
您好 使用的那个模型
支持!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.