You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
启动parallel_doc_qa的agent,想要通过api使用
from gradio_client import Client
client = Client("http://assistantrag.cn/")
result = client.predict(
_input={"files":[],"text":""},
_chatbot=[],
api_name="/add_text"
)
print(result)
但是输入的files的路径一直报错:docx.opc.exceptions.PackageNotFoundError: Package not found at
发现api只能接受在ui里上传的文件路径,如果换一个其他本地文件的路径会出现报错,想问下要怎么对本地文档处理,才能通过api使用
The text was updated successfully, but these errors were encountered:
启动parallel_doc_qa的agent,想要通过api使用
from gradio_client import Client
client = Client("http://assistantrag.cn/")
result = client.predict(
_input={"files":[],"text":""},
_chatbot=[],
api_name="/add_text"
)
print(result)
但是输入的files的路径一直报错:docx.opc.exceptions.PackageNotFoundError: Package not found at
发现api只能接受在ui里上传的文件路径,如果换一个其他本地文件的路径会出现报错,想问下要怎么对本地文档处理,才能通过api使用
The text was updated successfully, but these errors were encountered: