File size: 1,440 Bytes
bcf9fc0
 
e18dc18
 
 
 
9168941
 
b855294
 
05366bd
2da2a7b
05366bd
 
 
2da2a7b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9168941
 
e18dc18
5e5d211
 
 
 
 
b855294
5e5d211
e18dc18
 
 
7c6b19a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import gradio as gr

# Function to greet the user
def greet(name):
    return f"Hello, {name}!"


css = """ 
.gradio-container {
    background-color: #c48fc4;  /* Pink background */
    font-family: "Gradio";  /* Fun font */
    text-align: center;
}

.gradio-button {
        background-color: #FF66B2;  /* Pink button */
        color: white;
        font-size: 18px;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .gradio-button:hover {
        background-color: #FF3385;  /* Lighter pink on hover */
    }
    .gradio-input textarea {
        background-color: #FFCCE5;  /* Light pink input box */
        border-radius: 10px;
        border: 2px solid #FF66B2;
        padding: 10px;
        font-size: 16px;
    }
    .gradio-input textarea:focus {
        border-color: #FF3385;  /* Focus effect for the input box */
    }
    .gradio-output {
        background-color: #FFF0F6;  /* Soft pink background for output */
        border-radius: 10px;
        padding: 15px;
        font-size: 18px;
        color: #FF66B2;  /* Pink text for the response */
    }
    .gradio-interface {
        padding-top: 30px;
    }
"""

# Creating a Gradio interface
demo = gr.Interface(
    fn=greet, inputs="text", 
    outputs="text", 
    title="Cute Greeting App", 
    description="This app greets the user with a fun message!", 
    css=css
)

# Launch the app
demo.launch()