Spaces:
Sleeping
Sleeping
zxcvb6958 commited on
Commit ·
13ed6a5
1
Parent(s): edc21f8
update UI
Browse files
app.py
CHANGED
|
@@ -121,10 +121,10 @@ def diagnose_demo(img_name):
|
|
| 121 |
return result_table, result_text, suggestion
|
| 122 |
|
| 123 |
css = """
|
| 124 |
-
/* 主标题居中 */
|
| 125 |
#main-title {
|
| 126 |
text-align: center;
|
| 127 |
-
font-size:
|
| 128 |
font-weight: bold;
|
| 129 |
margin-bottom: 18px;
|
| 130 |
margin-top: 18px;
|
|
@@ -155,7 +155,6 @@ css = """
|
|
| 155 |
font-size: 25px;
|
| 156 |
font-weight: bold;
|
| 157 |
margin-bottom: 18px;
|
| 158 |
-
margin-left: 0;
|
| 159 |
color: #343434;
|
| 160 |
letter-spacing: 1px;
|
| 161 |
text-align: center;
|
|
@@ -168,7 +167,7 @@ css = """
|
|
| 168 |
font-weight: bold;
|
| 169 |
border: none !important;
|
| 170 |
border-radius: 12px !important;
|
| 171 |
-
padding: 7px
|
| 172 |
margin-left: 10px !important;
|
| 173 |
box-shadow: none !important;
|
| 174 |
}
|
|
@@ -178,13 +177,14 @@ css = """
|
|
| 178 |
font-weight: bold;
|
| 179 |
border: 2px solid #111 !important;
|
| 180 |
border-radius: 12px !important;
|
| 181 |
-
padding: 7px
|
| 182 |
margin-right: 10px !important;
|
| 183 |
box-shadow: none !important;
|
| 184 |
}
|
| 185 |
.button-row {
|
| 186 |
margin-top: 8px;
|
| 187 |
}
|
|
|
|
| 188 |
/* 图片圆角阴影 */
|
| 189 |
.gr-image, .gr-image-preview {
|
| 190 |
border-radius: 10px !important;
|
|
|
|
| 121 |
return result_table, result_text, suggestion
|
| 122 |
|
| 123 |
css = """
|
| 124 |
+
/* 主标题居中 且更大 */
|
| 125 |
#main-title {
|
| 126 |
text-align: center;
|
| 127 |
+
font-size: 44px;
|
| 128 |
font-weight: bold;
|
| 129 |
margin-bottom: 18px;
|
| 130 |
margin-top: 18px;
|
|
|
|
| 155 |
font-size: 25px;
|
| 156 |
font-weight: bold;
|
| 157 |
margin-bottom: 18px;
|
|
|
|
| 158 |
color: #343434;
|
| 159 |
letter-spacing: 1px;
|
| 160 |
text-align: center;
|
|
|
|
| 167 |
font-weight: bold;
|
| 168 |
border: none !important;
|
| 169 |
border-radius: 12px !important;
|
| 170 |
+
padding: 7px 6px !important; /* 宽度缩小一倍 */
|
| 171 |
margin-left: 10px !important;
|
| 172 |
box-shadow: none !important;
|
| 173 |
}
|
|
|
|
| 177 |
font-weight: bold;
|
| 178 |
border: 2px solid #111 !important;
|
| 179 |
border-radius: 12px !important;
|
| 180 |
+
padding: 7px 6px !important; /* 宽度缩小一倍 */
|
| 181 |
margin-right: 10px !important;
|
| 182 |
box-shadow: none !important;
|
| 183 |
}
|
| 184 |
.button-row {
|
| 185 |
margin-top: 8px;
|
| 186 |
}
|
| 187 |
+
|
| 188 |
/* 图片圆角阴影 */
|
| 189 |
.gr-image, .gr-image-preview {
|
| 190 |
border-radius: 10px !important;
|