Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,23 +4,14 @@ import gradio as gr
|
|
4 |
def greet(name):
|
5 |
return f"Hello, {name}!"
|
6 |
|
7 |
-
# Make the app pretty using some styles
|
8 |
-
css = """
|
9 |
-
.gradio-container {
|
10 |
-
background-color: #ffccff; /* Pink background */
|
11 |
-
font-family: "Comic Sans MS"; /* Fun font */
|
12 |
-
}
|
13 |
-
.gradio-button {
|
14 |
-
background-color: #ff66b2; /* Pink button */
|
15 |
-
color: white; /* White text */
|
16 |
-
}
|
17 |
-
.gradio-input {
|
18 |
-
background-color: #ffccff; /* Pink input box */
|
19 |
-
}
|
20 |
-
"""
|
21 |
-
|
22 |
# Creating a Gradio interface
|
23 |
-
demo = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
# Launch the app
|
26 |
demo.launch()
|
|
|
4 |
def greet(name):
|
5 |
return f"Hello, {name}!"
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
# Creating a Gradio interface
|
8 |
+
demo = gr.Interface(
|
9 |
+
fn=greet, inputs="text",
|
10 |
+
outputs="text",
|
11 |
+
title="Cute Greeting App",
|
12 |
+
description="This app greets the user with a fun message!",
|
13 |
+
css="style.css"
|
14 |
+
)
|
15 |
|
16 |
# Launch the app
|
17 |
demo.launch()
|