test / app.py
balaramas's picture
Update app.py
02f76ef verified
raw
history blame contribute delete
514 Bytes
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()