update layout
Browse files
app.py
CHANGED
|
@@ -226,30 +226,32 @@ with gr.Blocks() as demo:
|
|
| 226 |
with gr.Tab("Multi Structure"):
|
| 227 |
multi_logo = gr.HTML(MULTI_HTML_HOLDER)
|
| 228 |
with gr.Row():
|
| 229 |
-
with gr.
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
|
|
|
| 241 |
zip_input = gr.File(
|
| 242 |
-
label="
|
| 243 |
file_types=[".zip"],
|
| 244 |
type="binary",
|
| 245 |
scale=1,
|
|
|
|
| 246 |
)
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
|
| 254 |
with gr.Group():
|
| 255 |
mult_target_selector = gr.Dropdown(
|
|
|
|
| 226 |
with gr.Tab("Multi Structure"):
|
| 227 |
multi_logo = gr.HTML(MULTI_HTML_HOLDER)
|
| 228 |
with gr.Row():
|
| 229 |
+
with gr.Column():
|
| 230 |
+
with gr.Tab("从 UniProt 获取"):
|
| 231 |
+
uniprot_input = gr.Textbox(
|
| 232 |
+
label="输入 UniProt ID 获取结构",
|
| 233 |
+
placeholder="Input UniProt ID",
|
| 234 |
+
interactive=True,
|
| 235 |
+
scale=2,
|
| 236 |
+
)
|
| 237 |
+
with gr.Row():
|
| 238 |
+
pdb_num_slider = gr.Slider(1, 100, value=10, step=1, label="获取 PDB 数量上限(按设定数量随机采样)", interactive=True, scale=2)
|
| 239 |
+
uniprot_btn = gr.Button("抓取蛋白数据", variant="primary", scale=1)
|
| 240 |
+
|
| 241 |
+
with gr.Tab("手动上传结构压缩文件"):
|
| 242 |
zip_input = gr.File(
|
| 243 |
+
label="上传包含 .pdb/.ent/.cif 的 zip 压缩文件",
|
| 244 |
file_types=[".zip"],
|
| 245 |
type="binary",
|
| 246 |
scale=1,
|
| 247 |
+
|
| 248 |
)
|
| 249 |
+
seq_input = gr.Textbox(
|
| 250 |
+
label="目标蛋白质序列",
|
| 251 |
+
placeholder="上传文件时需手动输入 FASTA 格式序列或纯氨基酸序列...",
|
| 252 |
+
lines=8,
|
| 253 |
+
scale=3,
|
| 254 |
+
)
|
| 255 |
|
| 256 |
with gr.Group():
|
| 257 |
mult_target_selector = gr.Dropdown(
|