EZ4Fanta commited on
Commit
f8e22be
·
1 Parent(s): ef00c0f
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -207,13 +207,13 @@ with gr.Blocks() as demo:
207
  # TODO: 增加对 CIF 文件的支持
208
 
209
  pdb_input = gr.Textbox(
210
- label="输入PDB ID 获取结构",
211
  placeholder="Input PDB ID",
212
  interactive=True
213
  )
214
  pdb_btn = gr.Button("获取结构")
215
 
216
- file_input = gr.File(label="或直接上传PDB文件", file_types=[".pdb", ".cif", ".ent"])
217
  with gr.Column(scale=2):
218
  with gr.Row():
219
  entity_selector = gr.Dropdown(choices=[], interactive=True, multiselect=True, label="选择实体", scale=2)
@@ -228,25 +228,25 @@ with gr.Blocks() as demo:
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
  )
 
207
  # TODO: 增加对 CIF 文件的支持
208
 
209
  pdb_input = gr.Textbox(
210
+ label="输入 PDB ID 获取结构",
211
  placeholder="Input PDB ID",
212
  interactive=True
213
  )
214
  pdb_btn = gr.Button("获取结构")
215
 
216
+ file_input = gr.File(label="或直接上传 PDB 文件", file_types=[".pdb", ".cif", ".ent"])
217
  with gr.Column(scale=2):
218
  with gr.Row():
219
  entity_selector = gr.Dropdown(choices=[], interactive=True, multiselect=True, label="选择实体", scale=2)
 
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
  )