Update app.py
Browse files
app.py
CHANGED
@@ -43,24 +43,49 @@ def respond(
|
|
43 |
# CSS for styling the interface
|
44 |
css = """
|
45 |
body {
|
46 |
-
background-color: #
|
47 |
-
color:
|
|
|
48 |
}
|
49 |
-
|
50 |
.gr-button {
|
51 |
-
background-color: #42B3CE !important; /*
|
52 |
-
color:
|
53 |
border: none !important;
|
54 |
-
padding:
|
55 |
-
border-radius:
|
|
|
|
|
|
|
56 |
}
|
57 |
-
|
58 |
.gr-button:hover {
|
59 |
-
background-color: #
|
|
|
|
|
|
|
|
|
60 |
}
|
61 |
-
|
62 |
.gr-slider-container {
|
63 |
-
color: white !important; /*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
}
|
65 |
"""
|
66 |
|
@@ -78,7 +103,7 @@ demo = gr.ChatInterface(
|
|
78 |
maximum=1.0,
|
79 |
value=0.95,
|
80 |
step=0.05,
|
81 |
-
label="Top-p (nucleus sampling)",visible=False
|
82 |
),
|
83 |
],
|
84 |
css=css, # Pass the custom CSS here
|
|
|
43 |
# CSS for styling the interface
|
44 |
css = """
|
45 |
body {
|
46 |
+
background-color: #1e2a38; /* Dark blue background */
|
47 |
+
color: #ffffff; /* White text for readability */
|
48 |
+
font-family: 'Arial', sans-serif; /* Clean and modern font */
|
49 |
}
|
|
|
50 |
.gr-button {
|
51 |
+
background-color: #42B3CE !important; /* Light blue button */
|
52 |
+
color: #2e3b4e !important; /* Dark text for contrast */
|
53 |
border: none !important;
|
54 |
+
padding: 10px 20px !important;
|
55 |
+
border-radius: 8px !important;
|
56 |
+
font-size: 16px;
|
57 |
+
font-weight: bold;
|
58 |
+
transition: background-color 0.3s ease, transform 0.2s ease;
|
59 |
}
|
|
|
60 |
.gr-button:hover {
|
61 |
+
background-color: #3189A2 !important; /* Darker blue on hover */
|
62 |
+
transform: scale(1.05);
|
63 |
+
}
|
64 |
+
.gr-button:active {
|
65 |
+
background-color: #267b88 !important; /* Even darker when clicked */
|
66 |
}
|
|
|
67 |
.gr-slider-container {
|
68 |
+
color: white !important; /* White slider labels */
|
69 |
+
font-size: 14px;
|
70 |
+
}
|
71 |
+
.gr-slider {
|
72 |
+
background-color: #0b2545 !important; /* Slider track color */
|
73 |
+
border-radius: 8px;
|
74 |
+
}
|
75 |
+
.gr-slider .gr-slider-active {
|
76 |
+
background-color: #42B3CE !important; /* Active slider color */
|
77 |
+
}
|
78 |
+
.gr-textbox input {
|
79 |
+
background-color: #2f3b4d;
|
80 |
+
color: white;
|
81 |
+
border: 2px solid #42B3CE;
|
82 |
+
padding: 12px;
|
83 |
+
border-radius: 8px;
|
84 |
+
font-size: 16px;
|
85 |
+
transition: border 0.3s ease;
|
86 |
+
}
|
87 |
+
.gr-textbox input:focus {
|
88 |
+
border-color: #3189A2;
|
89 |
}
|
90 |
"""
|
91 |
|
|
|
103 |
maximum=1.0,
|
104 |
value=0.95,
|
105 |
step=0.05,
|
106 |
+
label="Top-p (nucleus sampling)", visible=False
|
107 |
),
|
108 |
],
|
109 |
css=css, # Pass the custom CSS here
|