Update app.py
Browse files
app.py
CHANGED
@@ -43,67 +43,24 @@ def respond(
|
|
43 |
# CSS for styling the interface
|
44 |
css = """
|
45 |
body {
|
46 |
-
|
47 |
-
|
48 |
-
}
|
49 |
-
|
50 |
-
.gradio-container {
|
51 |
-
max-width: 700px;
|
52 |
-
margin: auto;
|
53 |
-
}
|
54 |
-
|
55 |
-
.gr-chat-container {
|
56 |
-
border: 1px solid #ddd;
|
57 |
-
border-radius: 5px;
|
58 |
-
padding: 10px;
|
59 |
-
background-color: #fff;
|
60 |
-
}
|
61 |
-
|
62 |
-
.gr-message {
|
63 |
-
padding: 10px;
|
64 |
-
border-bottom: 1px solid #ddd;
|
65 |
-
}
|
66 |
-
|
67 |
-
.gr-message:last-child {
|
68 |
-
border-bottom: none;
|
69 |
-
}
|
70 |
-
|
71 |
-
.gr-user-message {
|
72 |
-
color: #333;
|
73 |
-
background-color: #f7f7f7;
|
74 |
-
border-radius: 5px;
|
75 |
-
padding: 5px;
|
76 |
-
}
|
77 |
-
|
78 |
-
.gr-assistant-message {
|
79 |
-
color: #333;
|
80 |
-
background-color: #fff;
|
81 |
-
border-radius: 5px;
|
82 |
-
padding: 5px;
|
83 |
-
}
|
84 |
-
|
85 |
-
.gr-input {
|
86 |
-
padding: 10px;
|
87 |
-
border: 1px solid #ccc;
|
88 |
-
border-radius: 5px;
|
89 |
-
width: 100%;
|
90 |
-
}
|
91 |
-
|
92 |
-
.gr-input:focus {
|
93 |
-
border-color: #aaa;
|
94 |
}
|
95 |
|
96 |
.gr-button {
|
97 |
-
background-color: #
|
98 |
-
color:
|
99 |
-
|
100 |
-
|
101 |
-
border-radius: 5px;
|
102 |
-
cursor: pointer;
|
103 |
}
|
104 |
|
105 |
.gr-button:hover {
|
106 |
-
background-color: #
|
|
|
|
|
|
|
|
|
107 |
}
|
108 |
"""
|
109 |
|
|
|
43 |
# CSS for styling the interface
|
44 |
css = """
|
45 |
body {
|
46 |
+
background-color: #06688E; /* Dark background */
|
47 |
+
color: white; /* Text color for better visibility */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
}
|
49 |
|
50 |
.gr-button {
|
51 |
+
background-color: #42B3CE !important; /* White button color */
|
52 |
+
color: black !important; /* Black text for contrast */
|
53 |
+
border: none !important;
|
54 |
+
padding: 8px 16px !important;
|
55 |
+
border-radius: 5px !important;
|
|
|
56 |
}
|
57 |
|
58 |
.gr-button:hover {
|
59 |
+
background-color: #e0e0e0 !important; /* Slightly lighter button on hover */
|
60 |
+
}
|
61 |
+
|
62 |
+
.gr-slider-container {
|
63 |
+
color: white !important; /* Slider labels in white */
|
64 |
}
|
65 |
"""
|
66 |
|