Spaces:
Sleeping
Sleeping
run 8
Browse files
app.py
CHANGED
|
@@ -98,21 +98,43 @@ with gr.Blocks() as demo:
|
|
| 98 |
|
| 99 |
demo.launch()
|
| 100 |
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
|
| 115 |
-
|
|
|
|
|
|
|
|
|
|
| 116 |
|
| 117 |
chatbot = gr.ChatInterface(fn=respond, title = "Mind Matters", description = "Always here to help", editable = True)
|
| 118 |
chatbot.launch()
|
|
|
|
| 98 |
|
| 99 |
demo.launch()
|
| 100 |
|
| 101 |
+
custom_css = """
|
| 102 |
+
body {
|
| 103 |
+
background: linear-gradient(135deg, #ffdde1 0%, #ee9ca7 100%);
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
.gradio-container {
|
| 107 |
+
background: transparent !important;
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
footer {
|
| 111 |
+
visibility: hidden;
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
/* Chatbot styling */
|
| 115 |
+
.message {
|
| 116 |
+
border-radius: 15px !important;
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
/* Input box */
|
| 120 |
+
textarea {
|
| 121 |
+
background-color: rgba(255,255,255,0.8) !important;
|
| 122 |
+
border-radius: 12px !important;
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
/* Buttons */
|
| 126 |
+
button {
|
| 127 |
+
background: #ff85a2 !important;
|
| 128 |
+
color: white !important;
|
| 129 |
+
border: none !important;
|
| 130 |
+
border-radius: 12px !important;
|
| 131 |
+
}
|
| 132 |
+
"""
|
| 133 |
|
| 134 |
+
demo = gr.ChatInterface(
|
| 135 |
+
fn=respond,
|
| 136 |
+
css=custom_css
|
| 137 |
+
)
|
| 138 |
|
| 139 |
chatbot = gr.ChatInterface(fn=respond, title = "Mind Matters", description = "Always here to help", editable = True)
|
| 140 |
chatbot.launch()
|