Skip to content

Commit

Permalink
added extra_headers to query_in_df
Browse files Browse the repository at this point in the history
  • Loading branch information
MinuraPunchihewa committed Jul 17, 2024
1 parent 57485e2 commit c508c11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugging_py_face/nlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def _query(self, inputs: Union[Text, List, Dict], parameters: Optional[Dict] = N
raise HTTPServiceUnavailableException("The HTTP service is unavailable.")

def _query_in_df(self, df: DataFrame, column: Text, parameters: Optional[Dict] = None, options: Optional[Dict] = None, model: Optional[Text] = None, task: Optional[Text] = None, extra_headers: Optional[Dict] = None) -> Union[Dict, List]:
return self._query(df[column].tolist(), parameters, options, model, task)
return self._query(df[column].tolist(), parameters, options, model, task, extra_headers)

def fill_mask(self, text: Union[Text, List], options: Optional[Dict] = None, model: Optional[Text] = None) -> List:
"""
Expand Down

0 comments on commit c508c11

Please sign in to comment.