File size: 383 Bytes
a28cdf6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import gradio as gr
def greet(name):
return f"Hello, {name}!"
# Create the Gradio interface
interface = gr.Interface(
fn=greet,
inputs=gr.Textbox(label="Enter your name"),
outputs=gr.Textbox(label="Greeting"),
title="Hello World",
description="A simple Gradio app that greets you!"
)
# Launch the interface
if __name__ == "__main__":
interface.launch() |