Hugging Face Gradio
Use Gradio for focused model demos, dataset tools, and internal evaluation interfaces.
Workflow
- Define the smallest input and output schema that demonstrates the workflow.
- Put model loading outside the request handler and bound concurrency, queue size, timeouts, and upload sizes.
- Validate file types and user input before inference.
- Build the app in a UV-managed environment and run it locally first.
- Exercise keyboard navigation, labels, loading, empty, error, cancellation, and mobile-width states.
- Measure cold start and warmed request latency.
- Add authentication before exposing private models, datasets, or outputs.
Do not enable a public share link or deploy a Space unless the user explicitly requests that external action. Before deployment, review secrets, repository visibility, hardware, sleep behavior, and expected cost.