Spaces:
Sleeping
Sleeping
metadata
title: Title Generator with Llama 3.2
emoji: π
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 4.44.0
app_file: app.py
pinned: false
license: mit
Title Generator with Llama 3.2-1B-Instruct
Generate concise titles from text or conversation history using Meta's Llama 3.2-1B-Instruct model.
Features
- π Generate titles from plain text
- π¬ Generate titles from conversation history
- π Fast inference with Llama 3.2-1B
- π RESTful API support for integration
Setup
- Go to your Space settings
- Add a new secret:
HF_TOKENwith your Hugging Face token - Make sure you have access to
meta-llama/Llama-3.2-1B-Instruct(accept the gated model)
API Usage
CURL Example
curl -X POST "https://YOUR-SPACE-URL/call/generate_title" \
-H "Content-Type: application/json" \
-d '{"data": ["Your text or conversation here"]}'
Python Example
from gradio_client import Client
client = Client("YOUR-SPACE-URL")
result = client.predict("Your text here", api_name="/generate_title")
print(result)
License
MIT License