Any Custom Frontend with Gradio's Backend
Hugging Face Blog 3 months ago
Gradio released gradio.Server, which allows developers to build custom frontends using React, Svelte, or vanilla HTML/JS while retaining Gradio's backend features like queuing, API infrastructure, and ZeroGPU support. The Text Behind Image demo application demonstrates this with approximately 50 lines of Python backend code and a ~1300-line vanilla HTML frontend that manages image layering and text rendering. This enables developers to choose between Gradio's built-in UI components or entirely custom frontends while maintaining access to Hugging Face Spaces hosting, concurrency management, and the gradio_client SDK.