Spaces:
Sleeping
Sleeping
Keldos
commited on
Commit
·
50dc299
1
Parent(s):
cbd8ea8
chore & refactor: 调整图片圆角
Browse files还给p做了限定,并用rem代替px
协调段间距改了代码块的margin
去掉了一个多余的逗号
- assets/custom.css +9 -4
- modules/models/models.py +1 -1
assets/custom.css
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
--chatbot-color-dark: #121111;
|
4 |
}
|
5 |
|
6 |
-
p { margin-bottom:
|
7 |
-
p:last-child { margin-bottom: 0 !important; }
|
8 |
|
9 |
#app_title {
|
10 |
font-weight: var(--prose-header-text-weight);
|
@@ -16,7 +16,7 @@ p:last-child { margin-bottom: 0 !important; }
|
|
16 |
}
|
17 |
#description {
|
18 |
text-align: center;
|
19 |
-
margin:16px 0
|
20 |
}
|
21 |
|
22 |
/* 覆盖gradio的页脚信息QAQ */
|
@@ -247,6 +247,11 @@ ol:not(.options), ul:not(.options) {
|
|
247 |
width: auto !important;
|
248 |
border-bottom-right-radius: 0 !important;
|
249 |
}
|
|
|
|
|
|
|
|
|
|
|
250 |
/* 表格 */
|
251 |
table {
|
252 |
margin: 1em 0;
|
@@ -280,7 +285,7 @@ pre code {
|
|
280 |
background-color: hsla(0, 0%, 0%, 80%)!important;
|
281 |
border-radius: 10px;
|
282 |
padding: 1.4em 1.2em 0em 1.4em;
|
283 |
-
margin:
|
284 |
color: #FFF;
|
285 |
box-shadow: 6px 6px 16px hsla(0, 0%, 0%, 0.2);
|
286 |
}
|
|
|
3 |
--chatbot-color-dark: #121111;
|
4 |
}
|
5 |
|
6 |
+
.message p { margin-bottom: 0.6rem !important;}
|
7 |
+
.message p:last-child { margin-bottom: 0 !important; }
|
8 |
|
9 |
#app_title {
|
10 |
font-weight: var(--prose-header-text-weight);
|
|
|
16 |
}
|
17 |
#description {
|
18 |
text-align: center;
|
19 |
+
margin: 16px 0;
|
20 |
}
|
21 |
|
22 |
/* 覆盖gradio的页脚信息QAQ */
|
|
|
247 |
width: auto !important;
|
248 |
border-bottom-right-radius: 0 !important;
|
249 |
}
|
250 |
+
|
251 |
+
.message-wrap>div img{
|
252 |
+
border-radius: 10px !important;
|
253 |
+
}
|
254 |
+
|
255 |
/* 表格 */
|
256 |
table {
|
257 |
margin: 1em 0;
|
|
|
285 |
background-color: hsla(0, 0%, 0%, 80%)!important;
|
286 |
border-radius: 10px;
|
287 |
padding: 1.4em 1.2em 0em 1.4em;
|
288 |
+
margin: 0.6em 2em 1.2em 0.5em;
|
289 |
color: #FFF;
|
290 |
box-shadow: 6px 6px 16px hsla(0, 0%, 0%, 0.2);
|
291 |
}
|
modules/models/models.py
CHANGED
@@ -461,7 +461,7 @@ class XMChat(BaseLLMModel):
|
|
461 |
"appraise": "good"
|
462 |
}
|
463 |
requests.post(self.url, json=data)
|
464 |
-
return "
|
465 |
|
466 |
def dislike(self):
|
467 |
if self.last_conv_id is None:
|
|
|
461 |
"appraise": "good"
|
462 |
}
|
463 |
requests.post(self.url, json=data)
|
464 |
+
return "👍点赞成功,感谢反馈~"
|
465 |
|
466 |
def dislike(self):
|
467 |
if self.last_conv_id is None:
|