gradio-template โ€” usable Gradio starter

A ready-to-fork Gradio starter maintained by @Sinadavinc80. The minimal working Blocks app you can drop into a Space or run locally.

Files in this template

app.py            # the Gradio app
requirements.txt  # python deps
README.md         # this card + Space config

Quickstart (local)

pip install gradio
python app.py

app.py

import gradio as gr

def greet(name: str) -> str:
    return f"Hello, {name}!"

demo = gr.Interface(
    fn=greet,
    inputs=gr.Textbox(label="Your name", placeholder="Enter your name"),
    outputs=gr.Textbox(label="Greeting"),
    title="Gradio Template",
    description="A minimal working Gradio app. Fork and replace `greet`.",
    examples=[["World"]],
)

if __name__ == "__main__":
    demo.launch()

requirements.txt

gradio>=5,<6

Deploy as a Space

Add this header to a Space README.md:

---
title: Gradio Template
emoji: ๐Ÿ–ผ
colorFrom: purple
colorTo: indigo
sdk: gradio
sdk_version: 5.44.1
app_file: app.py
pinned: false
hf_oauth: true
hf_oauth_scopes:
- inference-api
---

License

Apache-2.0

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