File size: 514 Bytes
b9d7584
 
 
 
 
 
 
cd174b7
39e8153
1623101
b9d7584
02f76ef
b9d7584
 
 
cd174b7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()