study-space / app.py
litifeng's picture
create a quickstart code
4a2c2fa verified
raw
history blame
207 Bytes
import gradio as gr
def greet(name, intensity):
return "hello, " + name + "!" * int(intensity)
demo = gr.Interface(
fn=greet,
input=["text", "slider"],
output=["text"],
)
demo.launch()