YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

My First Hugging Face Model

This is a sentiment analysis model based on DistilBERT.

Usage

from transformers import pipeline
classifier = pipeline("sentiment-analysis", model="chaukhaphan/my-first-hf-model")
classifier("I love deploying models!")



You can edit it:
- Locally and `git push`
- Or directly on the Hugging Face web UI

---

## ๐Ÿš€ 3. **Create a Live Web Demo with Gradio (Space)**

This lets non-technical users interact with your model via a **drag-and-drop UI**.

### How:

1. Go to: [https://huggingface.co/spaces](https://huggingface.co/spaces)
2. Click **Create new Space**
3. Choose:
   - SDK: **Gradio**
   - Name: e.g., `my-sentiment-app`
   - Hardware: CPU is fine
4. Create `app.py`:

```python
import gradio as gr
from transformers import pipeline

clf = pipeline("sentiment-analysis", model="chaukhaphan/my-first-hf-model")

def analyze(text):
    return clf(text)[0]

gr.Interface(fn=analyze, inputs="text", outputs="label", title="Sentiment Analyzer").launch()
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support