EZ4Fanta commited on
Commit
7ed806f
·
1 Parent(s): b831919

update layout

Browse files
Files changed (1) hide show
  1. app.py +21 -19
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.Group():
230
- uniprot_input = gr.Textbox(
231
- label="输入 UniProt ID 获取结构",
232
- placeholder="Input UniProt ID",
233
- interactive=True,
234
- scale=2,
235
- )
236
- with gr.Row():
237
- pdb_num_slider = gr.Slider(1, 100, value=10, step=1, label="获取 PDB 数量上限(按设定数量随机采样)", interactive=True, scale=2)
238
- uniprot_btn = gr.Button("从 UniProt 获取结构", variant="primary", scale=1)
239
-
240
- with gr.Row():
 
241
  zip_input = gr.File(
242
- label="上传包含 .pdb/.ent/.cif 的 zip 压缩文件",
243
  file_types=[".zip"],
244
  type="binary",
245
  scale=1,
 
246
  )
247
- seq_input = gr.Textbox(
248
- label="目标蛋白质序列",
249
- placeholder="上传文件需手动输入 FASTA 格式序列或纯氨基酸序列...",
250
- lines=8,
251
- scale=3,
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(