Spaces:
Sleeping
Sleeping
zxcvb6958 commited on
Commit ·
690f0bc
1
Parent(s): f9d3b39
update UI
Browse files
app.py
CHANGED
|
@@ -200,9 +200,6 @@ css = """
|
|
| 200 |
font-size: 14px;
|
| 201 |
font-weight: normal;
|
| 202 |
}
|
| 203 |
-
.gr-block label, .gr-form label, .gr-box label {
|
| 204 |
-
display: none !important;
|
| 205 |
-
}
|
| 206 |
"""
|
| 207 |
|
| 208 |
def reset_enhance():
|
|
@@ -225,7 +222,7 @@ with gr.Blocks(title="消化道疾病智能分析系统") as demo:
|
|
| 225 |
with gr.Group(elem_classes="blue-dash-border"):
|
| 226 |
with gr.Group(elem_classes="big-group"):
|
| 227 |
gr.HTML("<div class='big-title'>图像增强模块</div>")
|
| 228 |
-
enhance_select = gr.Dropdown(choices=ENHANCE_CHOICES, value="请选择样例图片或者上传",
|
| 229 |
with gr.Row():
|
| 230 |
with gr.Column():
|
| 231 |
enhance_input_img = gr.Image(show_label=False, interactive=False, width=300, height=300)
|
|
@@ -246,7 +243,7 @@ with gr.Blocks(title="消化道疾病智能分析系统") as demo:
|
|
| 246 |
with gr.Group(elem_classes="blue-dash-border"):
|
| 247 |
with gr.Group(elem_classes="big-group"):
|
| 248 |
gr.HTML("<div class='big-title'>图像分割模块</div>")
|
| 249 |
-
seg_select = gr.Dropdown(choices=SEG_CHOICES, value="请选择样例图片或者上传",
|
| 250 |
with gr.Row():
|
| 251 |
with gr.Column():
|
| 252 |
seg_input_img = gr.Image(show_label=False, interactive=False, width=300, height=300)
|
|
@@ -269,7 +266,7 @@ with gr.Blocks(title="消化道疾病智能分析系统") as demo:
|
|
| 269 |
with gr.Row():
|
| 270 |
# 左列:输入图片+按钮
|
| 271 |
with gr.Column():
|
| 272 |
-
diag_select = gr.Dropdown(choices=DIAG_CHOICES, value="请选择样例图片或者上传",
|
| 273 |
with gr.Column():
|
| 274 |
diag_input_img = gr.Image(show_label=False, interactive=False, width=300, height=300)
|
| 275 |
gr.HTML("<div class='img-label-bar'>输入图片</div>")
|
|
|
|
| 200 |
font-size: 14px;
|
| 201 |
font-weight: normal;
|
| 202 |
}
|
|
|
|
|
|
|
|
|
|
| 203 |
"""
|
| 204 |
|
| 205 |
def reset_enhance():
|
|
|
|
| 222 |
with gr.Group(elem_classes="blue-dash-border"):
|
| 223 |
with gr.Group(elem_classes="big-group"):
|
| 224 |
gr.HTML("<div class='big-title'>图像增强模块</div>")
|
| 225 |
+
enhance_select = gr.Dropdown(choices=ENHANCE_CHOICES, value="---------------", label="请选择样例图片或者上传", filterable=True)
|
| 226 |
with gr.Row():
|
| 227 |
with gr.Column():
|
| 228 |
enhance_input_img = gr.Image(show_label=False, interactive=False, width=300, height=300)
|
|
|
|
| 243 |
with gr.Group(elem_classes="blue-dash-border"):
|
| 244 |
with gr.Group(elem_classes="big-group"):
|
| 245 |
gr.HTML("<div class='big-title'>图像分割模块</div>")
|
| 246 |
+
seg_select = gr.Dropdown(choices=SEG_CHOICES, value="---------------", label="请选择样例图片或者上传", filterable=True)
|
| 247 |
with gr.Row():
|
| 248 |
with gr.Column():
|
| 249 |
seg_input_img = gr.Image(show_label=False, interactive=False, width=300, height=300)
|
|
|
|
| 266 |
with gr.Row():
|
| 267 |
# 左列:输入图片+按钮
|
| 268 |
with gr.Column():
|
| 269 |
+
diag_select = gr.Dropdown(choices=DIAG_CHOICES, value="---------------", label="请选择样例图片或者上传", filterable=True)
|
| 270 |
with gr.Column():
|
| 271 |
diag_input_img = gr.Image(show_label=False, interactive=False, width=300, height=300)
|
| 272 |
gr.HTML("<div class='img-label-bar'>输入图片</div>")
|