huggingface / hub-docs

Docs of the Hugging Face Hub

Home Page:http://hf.co/docs/hub

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Text-Classification Pipeline does not show the text in the widget

canberk17 opened this issue · comments

Hey guys, I've encountered an issue when I tried to use the widget in model cards for text classification. Here are the details:

I'm experiencing an issue with the Text-Classification pipeline in my model card, particularly with my project ckandemir/bitcoin_tweet_sentiment_classification.

When I provide the text I want to show on the widget to my README.md and select text-classification as pipeline( or AutoDetect), the widget does not show the text. However, when I change the pipeline to Token-Classification it does show the text as default.

Here are the examples:

This is when the pipeline is set to: text-classification
Screenshot 2023-11-05 at 11 11 22 PM

This is when the pipeline is set to: token-classification

Screenshot 2023-11-05 at 11 11 52 PM

Describe the solution you'd like
The ideal solution would be for the widget to display the provided text in the README.md file by default when the pipeline is set to Text-Classification

@mishig25

Thanks for reporting this, @canberk17!

Of course! Thank you for the quick fix, and this amazing community! @julien-c @mishig25