Spaces:
Sleeping
Sleeping
chengwang96 commited on
Commit ·
bdb8a42
1
Parent(s): 326f06f
update button
Browse files
app.py
CHANGED
|
@@ -145,13 +145,20 @@ css = """
|
|
| 145 |
margin: 16px !important;
|
| 146 |
box-shadow: 0 3px 12px 2px rgba(60,64,67,.14);
|
| 147 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
.big-title {
|
| 149 |
font-size: 25px;
|
| 150 |
font-weight: bold;
|
| 151 |
-
margin-bottom: 18px;
|
| 152 |
color: #343434;
|
| 153 |
letter-spacing: 1px;
|
| 154 |
text-align: center;
|
|
|
|
|
|
|
| 155 |
}
|
| 156 |
.orange-btn {
|
| 157 |
background: #FF7F1F !important;
|
|
@@ -159,14 +166,17 @@ css = """
|
|
| 159 |
font-weight: bold;
|
| 160 |
border: none !important;
|
| 161 |
border-radius: 12px !important;
|
| 162 |
-
padding: 7px
|
| 163 |
-
margin: 0
|
| 164 |
box-shadow: none !important;
|
| 165 |
min-width: unset !important;
|
| 166 |
width: auto !important;
|
| 167 |
-
display: block !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 168 |
}
|
| 169 |
-
|
| 170 |
.button-row {
|
| 171 |
margin-top: 8px;
|
| 172 |
}
|
|
@@ -231,8 +241,9 @@ with gr.Blocks(title="消化道疾病智能分析系统") as demo:
|
|
| 231 |
with gr.Column():
|
| 232 |
with gr.Group(elem_classes="blue-dash-border"):
|
| 233 |
with gr.Group(elem_classes="big-group"):
|
| 234 |
-
gr.
|
| 235 |
-
|
|
|
|
| 236 |
enhance_select = gr.Dropdown(
|
| 237 |
choices=ENHANCE_CHOICES,
|
| 238 |
value="---------------",
|
|
@@ -270,8 +281,9 @@ with gr.Blocks(title="消化道疾病智能分析系统") as demo:
|
|
| 270 |
with gr.Column():
|
| 271 |
with gr.Group(elem_classes="blue-dash-border"):
|
| 272 |
with gr.Group(elem_classes="big-group"):
|
| 273 |
-
gr.
|
| 274 |
-
|
|
|
|
| 275 |
seg_select = gr.Dropdown(
|
| 276 |
choices=SEG_CHOICES,
|
| 277 |
value="---------------",
|
|
@@ -301,8 +313,9 @@ with gr.Blocks(title="消化道疾病智能分析系统") as demo:
|
|
| 301 |
with gr.Row():
|
| 302 |
with gr.Group(elem_classes="blue-dash-border"):
|
| 303 |
with gr.Group(elem_classes="big-group"):
|
| 304 |
-
gr.
|
| 305 |
-
|
|
|
|
| 306 |
with gr.Row():
|
| 307 |
# ---------- 左列:输入图片 + 按钮 ----------
|
| 308 |
with gr.Column():
|
|
|
|
| 145 |
margin: 16px !important;
|
| 146 |
box-shadow: 0 3px 12px 2px rgba(60,64,67,.14);
|
| 147 |
}
|
| 148 |
+
.title-row {
|
| 149 |
+
display: flex;
|
| 150 |
+
flex-direction: row;
|
| 151 |
+
align-items: center;
|
| 152 |
+
margin-bottom: 18px;
|
| 153 |
+
}
|
| 154 |
.big-title {
|
| 155 |
font-size: 25px;
|
| 156 |
font-weight: bold;
|
|
|
|
| 157 |
color: #343434;
|
| 158 |
letter-spacing: 1px;
|
| 159 |
text-align: center;
|
| 160 |
+
margin: 0 16px 0 0; /* 右侧空隙让按钮和文字隔开一点 */
|
| 161 |
+
display: inline-block;
|
| 162 |
}
|
| 163 |
.orange-btn {
|
| 164 |
background: #FF7F1F !important;
|
|
|
|
| 166 |
font-weight: bold;
|
| 167 |
border: none !important;
|
| 168 |
border-radius: 12px !important;
|
| 169 |
+
padding: 7px 16px !important;
|
| 170 |
+
margin: 0 !important;
|
| 171 |
box-shadow: none !important;
|
| 172 |
min-width: unset !important;
|
| 173 |
width: auto !important;
|
| 174 |
+
display: inline-block !important;
|
| 175 |
+
font-size: 16px;
|
| 176 |
+
height: 38px;
|
| 177 |
+
line-height: 24px;
|
| 178 |
+
vertical-align: middle;
|
| 179 |
}
|
|
|
|
| 180 |
.button-row {
|
| 181 |
margin-top: 8px;
|
| 182 |
}
|
|
|
|
| 241 |
with gr.Column():
|
| 242 |
with gr.Group(elem_classes="blue-dash-border"):
|
| 243 |
with gr.Group(elem_classes="big-group"):
|
| 244 |
+
with gr.Row(elem_id="enhance-title-row", elem_classes="title-row"):
|
| 245 |
+
gr.HTML("<div class='big-title'>图像增强模块</div>")
|
| 246 |
+
enhance_btn = gr.Button("点击执行图片增强", elem_classes="orange-btn")
|
| 247 |
enhance_select = gr.Dropdown(
|
| 248 |
choices=ENHANCE_CHOICES,
|
| 249 |
value="---------------",
|
|
|
|
| 281 |
with gr.Column():
|
| 282 |
with gr.Group(elem_classes="blue-dash-border"):
|
| 283 |
with gr.Group(elem_classes="big-group"):
|
| 284 |
+
with gr.Row(elem_id="seg-title-row", elem_classes="title-row"):
|
| 285 |
+
gr.HTML("<div class='big-title'>图像分割模块</div>")
|
| 286 |
+
seg_btn = gr.Button("点击执行分割", elem_classes="orange-btn")
|
| 287 |
seg_select = gr.Dropdown(
|
| 288 |
choices=SEG_CHOICES,
|
| 289 |
value="---------------",
|
|
|
|
| 313 |
with gr.Row():
|
| 314 |
with gr.Group(elem_classes="blue-dash-border"):
|
| 315 |
with gr.Group(elem_classes="big-group"):
|
| 316 |
+
with gr.Row(elem_id="diag-title-row", elem_classes="title-row"):
|
| 317 |
+
gr.HTML("<div class='big-title'>疾病分类模块</div>")
|
| 318 |
+
diag_btn = gr.Button("点击执行诊断", elem_classes="orange-btn")
|
| 319 |
with gr.Row():
|
| 320 |
# ---------- 左列:输入图片 + 按钮 ----------
|
| 321 |
with gr.Column():
|