Spaces:
Sleeping
Sleeping
Keira James
commited on
Commit
·
c80393e
1
Parent(s):
279b72c
edit gradio -3
Browse files
app.py
CHANGED
|
@@ -46,66 +46,75 @@ demo = gr.ChatInterface(
|
|
| 46 |
gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)"),
|
| 47 |
],
|
| 48 |
css="""
|
| 49 |
-
/* Custom CSS to style the interface */
|
| 50 |
.gradio-container {
|
| 51 |
-
background-color: #
|
| 52 |
-
color: #
|
| 53 |
-
font-family: '
|
| 54 |
-
border-radius:
|
| 55 |
-
padding:
|
|
|
|
| 56 |
}
|
| 57 |
|
| 58 |
.gradio-button {
|
| 59 |
-
background-color: #
|
| 60 |
color: white;
|
| 61 |
-
border-radius:
|
| 62 |
-
font-size:
|
| 63 |
-
padding:
|
|
|
|
|
|
|
| 64 |
}
|
| 65 |
|
| 66 |
.gradio-button:hover {
|
| 67 |
-
background-color: #
|
| 68 |
}
|
| 69 |
|
| 70 |
.gradio-textbox {
|
| 71 |
-
background-color: #
|
| 72 |
border-radius: 12px;
|
| 73 |
-
color: #
|
| 74 |
-
padding:
|
|
|
|
| 75 |
}
|
| 76 |
|
| 77 |
.gradio-chat {
|
| 78 |
-
background-color: #
|
| 79 |
-
border-radius:
|
| 80 |
-
padding:
|
| 81 |
}
|
| 82 |
|
| 83 |
.gradio-chat .gradio-message-user {
|
| 84 |
-
background-color: #
|
| 85 |
border-radius: 12px;
|
| 86 |
-
color:
|
|
|
|
| 87 |
}
|
| 88 |
|
| 89 |
.gradio-chat .gradio-message-assistant {
|
| 90 |
-
background-color: #
|
| 91 |
border-radius: 12px;
|
| 92 |
-
color: #
|
|
|
|
| 93 |
}
|
| 94 |
|
| 95 |
.gradio-container h1 {
|
| 96 |
-
color: #
|
| 97 |
-
font-size:
|
| 98 |
text-align: center;
|
|
|
|
|
|
|
| 99 |
}
|
| 100 |
|
| 101 |
-
.gradio-container
|
|
|
|
|
|
|
| 102 |
font-size: 16px;
|
|
|
|
| 103 |
}
|
| 104 |
|
| 105 |
-
.gradio-container
|
| 106 |
-
|
| 107 |
-
text-align: center;
|
| 108 |
-
font-size: 14px;
|
| 109 |
}
|
| 110 |
"""
|
| 111 |
)
|
|
|
|
| 46 |
gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)"),
|
| 47 |
],
|
| 48 |
css="""
|
| 49 |
+
/* Custom CSS to style the interface with pink and cute aesthetic */
|
| 50 |
.gradio-container {
|
| 51 |
+
background-color: #f9e5e5; /* Soft pastel pink */
|
| 52 |
+
color: #ff8fa3; /* Pink text */
|
| 53 |
+
font-family: 'Comic Sans MS', sans-serif; /* Fun, playful font */
|
| 54 |
+
border-radius: 20px;
|
| 55 |
+
padding: 30px;
|
| 56 |
+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
| 57 |
}
|
| 58 |
|
| 59 |
.gradio-button {
|
| 60 |
+
background-color: #ff7fa5; /* Lighter pink buttons */
|
| 61 |
color: white;
|
| 62 |
+
border-radius: 12px;
|
| 63 |
+
font-size: 18px;
|
| 64 |
+
padding: 16px 32px;
|
| 65 |
+
font-weight: bold;
|
| 66 |
+
transition: background-color 0.3s ease;
|
| 67 |
}
|
| 68 |
|
| 69 |
.gradio-button:hover {
|
| 70 |
+
background-color: #ff5885; /* Even lighter pink on hover */
|
| 71 |
}
|
| 72 |
|
| 73 |
.gradio-textbox {
|
| 74 |
+
background-color: #ffd3d3; /* Soft pink background for textboxes */
|
| 75 |
border-radius: 12px;
|
| 76 |
+
color: #ff4d6d; /* Bold pink text */
|
| 77 |
+
padding: 16px;
|
| 78 |
+
border: 2px solid #ff8fa3;
|
| 79 |
}
|
| 80 |
|
| 81 |
.gradio-chat {
|
| 82 |
+
background-color: #fff0f5; /* Very light pink for chat */
|
| 83 |
+
border-radius: 20px;
|
| 84 |
+
padding: 20px;
|
| 85 |
}
|
| 86 |
|
| 87 |
.gradio-chat .gradio-message-user {
|
| 88 |
+
background-color: #ff7fa5; /* Light pink background for user messages */
|
| 89 |
border-radius: 12px;
|
| 90 |
+
color: white;
|
| 91 |
+
padding: 12px;
|
| 92 |
}
|
| 93 |
|
| 94 |
.gradio-chat .gradio-message-assistant {
|
| 95 |
+
background-color: #ffd3d3; /* Soft pink for assistant's messages */
|
| 96 |
border-radius: 12px;
|
| 97 |
+
color: #ff4d6d;
|
| 98 |
+
padding: 12px;
|
| 99 |
}
|
| 100 |
|
| 101 |
.gradio-container h1 {
|
| 102 |
+
color: #ff4d6d; /* Pink header */
|
| 103 |
+
font-size: 40px;
|
| 104 |
text-align: center;
|
| 105 |
+
font-weight: bold;
|
| 106 |
+
margin-bottom: 30px;
|
| 107 |
}
|
| 108 |
|
| 109 |
+
.gradio-container p {
|
| 110 |
+
color: #ff8fa3; /* Soft pink text for descriptions */
|
| 111 |
+
text-align: center;
|
| 112 |
font-size: 16px;
|
| 113 |
+
margin-top: 10px;
|
| 114 |
}
|
| 115 |
|
| 116 |
+
.gradio-container .gradio-textbox input {
|
| 117 |
+
font-size: 18px;
|
|
|
|
|
|
|
| 118 |
}
|
| 119 |
"""
|
| 120 |
)
|