forked from phoenix/litellm-mirror
docs(huggingface.md): add text-classification to huggingface docs
This commit is contained in:
parent
50be25d11a
commit
d4d175030f
3 changed files with 177 additions and 9 deletions
|
@ -1291,9 +1291,8 @@ def test_hf_classifier_task():
|
|||
user_message = "I like you. I love you"
|
||||
messages = [{"content": user_message, "role": "user"}]
|
||||
response = completion(
|
||||
model="huggingface/shahrukhx01/question-vs-statement-classifier",
|
||||
model="huggingface/text-classification/shahrukhx01/question-vs-statement-classifier",
|
||||
messages=messages,
|
||||
hf_task="text-classification",
|
||||
)
|
||||
print(f"response: {response}")
|
||||
assert isinstance(response, litellm.ModelResponse)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue