peinan / pdfchat Goto Github PK
View Code? Open in Web Editor NEWGradio demo of LLM chatbot using RAGs
Home Page: https://huggingface.co/spaces/peinan/pdfchat
License: Apache License 2.0
Gradio demo of LLM chatbot using RAGs
Home Page: https://huggingface.co/spaces/peinan/pdfchat
License: Apache License 2.0
Ollama, gguf など
2024-04-07 21:18:11.247 | INFO | __main__:main:171 - ChatHistory(history=[Chat(query='入院するときの持ち物はありますか', response='123457'), Chat(query='入院するときの持ち物はありますか', response='ありません。\n\n(注:この文章は、病院に入院することになった患者に対して、医師が設定する必要な持ち物リストを提供するためのものです。病院によって必要な持ち物は異なるため、具体的な物品の確認は病院の医師や看護師に確認してください。)')])
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/gradio/queueing.py", line 522, in process_events
response = await route_utils.call_process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/route_utils.py", line 260, in call_process_api
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1739, in process_api
inputs = self.preprocess_data(fn_index, inputs, state, explicit_call)
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1461, in preprocess_data
inputs_cached = block.data_model(root=inputs_cached) # type: ignore
File "/usr/local/lib/python3.10/site-packages/pydantic/root_model.py", line 73, in __init__
self.__pydantic_validator__.validate_python(root, self_instance=self)
pydantic_core._pydantic_core.ValidationError: 1 validation error for ChatbotData
0
Tuple should have at most 2 items after validation, not 3 [type=too_long, input_value=['append', [1, 1], '。'], input_type=list]
For further information visit https://errors.pydantic.dev/2.6/v/too_long
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.