Spaces:
Sleeping
Sleeping
jjz5463
commited on
Commit
·
f4dbfcc
1
Parent(s):
b312ef4
css update
Browse files
app.py
CHANGED
|
@@ -72,43 +72,57 @@ def chat(user_input, history):
|
|
| 72 |
return invalid_response
|
| 73 |
|
| 74 |
css = """
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
color:
|
|
|
|
| 78 |
}
|
| 79 |
|
| 80 |
-
|
| 81 |
-
background-color: #
|
| 82 |
-
color:
|
| 83 |
-
border: 1px solid #333 !important;
|
| 84 |
}
|
| 85 |
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
color:
|
| 89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
}
|
| 91 |
|
| 92 |
-
.
|
| 93 |
-
|
| 94 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
}
|
| 96 |
|
| 97 |
-
.
|
| 98 |
-
background-color: #
|
| 99 |
-
color:
|
| 100 |
}
|
| 101 |
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
color:
|
| 105 |
-
|
|
|
|
| 106 |
}
|
| 107 |
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
color:
|
| 111 |
-
|
|
|
|
| 112 |
}
|
| 113 |
"""
|
| 114 |
|
|
|
|
| 72 |
return invalid_response
|
| 73 |
|
| 74 |
css = """
|
| 75 |
+
/* Overall Background and Text */
|
| 76 |
+
body {
|
| 77 |
+
background-color: #1e1e2f;
|
| 78 |
+
color: #e0e0e0;
|
| 79 |
}
|
| 80 |
|
| 81 |
+
.gradio-container {
|
| 82 |
+
background-color: #1e1e2f;
|
| 83 |
+
color: #e0e0e0;
|
|
|
|
| 84 |
}
|
| 85 |
|
| 86 |
+
/* Markdown Heading */
|
| 87 |
+
.gr-markdown {
|
| 88 |
+
color: #c3e88d;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
/* Textbox Styles */
|
| 92 |
+
.gr-textbox input[type="text"], .gr-textbox textarea {
|
| 93 |
+
background-color: #2e2e3e;
|
| 94 |
+
color: #dcdcdc;
|
| 95 |
+
border: 1px solid #44475a;
|
| 96 |
}
|
| 97 |
|
| 98 |
+
.gr-textbox input[type="text"]::placeholder, .gr-textbox textarea::placeholder {
|
| 99 |
+
color: #777;
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
/* Button Styles */
|
| 103 |
+
.gr-button {
|
| 104 |
+
background-color: #3b3b57;
|
| 105 |
+
color: #ffffff;
|
| 106 |
+
border: 1px solid #4c4c66;
|
| 107 |
}
|
| 108 |
|
| 109 |
+
.gr-button:hover {
|
| 110 |
+
background-color: #4c4c66;
|
| 111 |
+
color: #ffffff;
|
| 112 |
}
|
| 113 |
|
| 114 |
+
/* Chat Interface */
|
| 115 |
+
.gr-chatinterface {
|
| 116 |
+
background-color: #1e1e2f;
|
| 117 |
+
color: #e0e0e0;
|
| 118 |
+
border: 1px solid #44475a;
|
| 119 |
}
|
| 120 |
|
| 121 |
+
/* Status Textbox */
|
| 122 |
+
.gr-textbox .status {
|
| 123 |
+
background-color: #2e2e3e;
|
| 124 |
+
color: #c3e88d;
|
| 125 |
+
border: 1px solid #44475a;
|
| 126 |
}
|
| 127 |
"""
|
| 128 |
|