Spaces:
Running
Running
update HF title
Browse files
app.css
CHANGED
|
@@ -1,5 +1,19 @@
|
|
| 1 |
/* Basic styling for the coder application */
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
.left_header {
|
| 4 |
text-align: center;
|
| 5 |
margin-bottom: 20px;
|
|
@@ -7,11 +21,11 @@
|
|
| 7 |
|
| 8 |
.left_header h1 {
|
| 9 |
margin-top: 10px;
|
| 10 |
-
color:
|
| 11 |
}
|
| 12 |
|
| 13 |
.right_panel {
|
| 14 |
-
background:
|
| 15 |
border-radius: 8px;
|
| 16 |
padding: 20px;
|
| 17 |
height: 100%;
|
|
@@ -50,7 +64,7 @@
|
|
| 50 |
height: 920px;
|
| 51 |
border: none;
|
| 52 |
border-radius: 8px;
|
| 53 |
-
background:
|
| 54 |
}
|
| 55 |
|
| 56 |
.history_chatbot {
|
|
|
|
| 1 |
/* Basic styling for the coder application */
|
| 2 |
|
| 3 |
+
:root {
|
| 4 |
+
--text-color: #333;
|
| 5 |
+
--bg-color: #f5f5f5;
|
| 6 |
+
--html-bg: white;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
@media (prefers-color-scheme: dark) {
|
| 10 |
+
:root {
|
| 11 |
+
--text-color: #e0e0e0;
|
| 12 |
+
--bg-color: #2d2d2d;
|
| 13 |
+
--html-bg: #1e1e1e;
|
| 14 |
+
}
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
.left_header {
|
| 18 |
text-align: center;
|
| 19 |
margin-bottom: 20px;
|
|
|
|
| 21 |
|
| 22 |
.left_header h1 {
|
| 23 |
margin-top: 10px;
|
| 24 |
+
color: var(--text-color);
|
| 25 |
}
|
| 26 |
|
| 27 |
.right_panel {
|
| 28 |
+
background: var(--bg-color);
|
| 29 |
border-radius: 8px;
|
| 30 |
padding: 20px;
|
| 31 |
height: 100%;
|
|
|
|
| 64 |
height: 920px;
|
| 65 |
border: none;
|
| 66 |
border-radius: 8px;
|
| 67 |
+
background: var(--html-bg);
|
| 68 |
}
|
| 69 |
|
| 70 |
.history_chatbot {
|
app.py
CHANGED
|
@@ -175,7 +175,7 @@ with gr.Blocks(css_paths="app.css") as demo:
|
|
| 175 |
header = gr.HTML("""
|
| 176 |
<div class="left_header">
|
| 177 |
<img src="//img.alicdn.com/imgextra/i2/O1CN01KDhOma1DUo8oa7OIU_!!6000000000220-1-tps-240-240.gif" width="200px" />
|
| 178 |
-
<h1>
|
| 179 |
</div>
|
| 180 |
""")
|
| 181 |
input = antd.InputTextarea(
|
|
|
|
| 175 |
header = gr.HTML("""
|
| 176 |
<div class="left_header">
|
| 177 |
<img src="//img.alicdn.com/imgextra/i2/O1CN01KDhOma1DUo8oa7OIU_!!6000000000220-1-tps-240-240.gif" width="200px" />
|
| 178 |
+
<h1>Hugging Face Coder</h1>
|
| 179 |
</div>
|
| 180 |
""")
|
| 181 |
input = antd.InputTextarea(
|