gradio api调用

from gradio_client import Client, handle_file

client = Client("http://192.168.1.162:8080/")
result = client.predict(
	files=[handle_file('data\结算单-2.pdf')],
	指令="返回表格信息",
	api_name="/batch_pdf_to_txt"
)
print(result)

posted on 2026-01-14 10:22  张博的博客  阅读(5)  评论(0)    收藏  举报

导航