
Hugging Face Spaces is a free hosting platform for AI demos and applications — build with Gradio or Streamlit and deploy instantly.
import gradio as gr
from transformers import pipeline
classifier = pipeline("sentiment-analysis")
def analyze(text):
return classifier(text)[0]
gr.Interface(fn=analyze, inputs="text", outputs="json").launch()Push to a Hugging Face Space repository — it builds and deploys automatically. Free tier available.
Reference:
TaskLoco™ — The Sticky Note GOAT