Skip to content

Commit 8809f44

Browse files
fix table question answering (#3154)
1 parent c329d56 commit 8809f44

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/huggingface_hub/inference/_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1685,9 +1685,8 @@ def table_question_answering(
16851685
model_id = model or self.model
16861686
provider_helper = get_provider_helper(self.provider, task="table-question-answering", model=model_id)
16871687
request_parameters = provider_helper.prepare_request(
1688-
inputs=None,
1688+
inputs={"query": query, "table": table},
16891689
parameters={"model": model, "padding": padding, "sequential": sequential, "truncation": truncation},
1690-
extra_payload={"query": query, "table": table},
16911690
headers=self.headers,
16921691
model=model_id,
16931692
api_key=self.token,

src/huggingface_hub/inference/_generated/_async_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,9 +1737,8 @@ async def table_question_answering(
17371737
model_id = model or self.model
17381738
provider_helper = get_provider_helper(self.provider, task="table-question-answering", model=model_id)
17391739
request_parameters = provider_helper.prepare_request(
1740-
inputs=None,
1740+
inputs={"query": query, "table": table},
17411741
parameters={"model": model, "padding": padding, "sequential": sequential, "truncation": truncation},
1742-
extra_payload={"query": query, "table": table},
17431742
headers=self.headers,
17441743
model=model_id,
17451744
api_key=self.token,

0 commit comments

Comments
 (0)