| import gradio as gr | |
| # Define your function | |
| def greet(name): | |
| return f"Hello, {name}!" | |
| # Customize the interface | |
| gr.Interface( | |
| fn=greet, | |
| inputs=gr.Textbox(label="Enter your name", placeholder="Type here..."), | |
| outputs="text", | |
| theme="base", # Change the overall color theme: "light" or "dark" | |
| title="Greeting App", # Set a title for your app | |
| allow_flagging=False, # Disable flagging feature | |
| flagging_options=["Inappropriate", "Irrelevant"], # Customize flagging options | |
| ).launch() |