未验证 提交 f730db10 编写于 作者: Y Yingfei(Jeremy) Xiang 提交者: GitHub

Update PP-HelixFold app.py (#5656)

上级 da00e649
...@@ -83,13 +83,13 @@ def update(fastaName='',fastaContent=''): ...@@ -83,13 +83,13 @@ def update(fastaName='',fastaContent=''):
demo = gr.Blocks() demo = gr.Blocks()
with demo: with demo:
gr.Markdown("# PDB viewer using 3Dmol.js") gr.Markdown("# PP-HelixFold Protein Structure Prediction Demo")
with gr.Row(): with gr.Row():
with gr.Box(): with gr.Box():
fastaName = gr.Textbox(interactive=False,label='Fasta label') fastaName = gr.Textbox(interactive=False,label='Fasta label')
fastaContent = gr.Textbox(interactive=False,label='Fasta content') fastaContent = gr.Textbox(interactive=False,label='Fasta content')
gr.Examples([["T1026", read_mol( "T1026.fasta")],["T1037", read_mol("T1037.fasta")]], [fastaName,fastaContent]) gr.Examples([["T1026", read_mol( "T1026.fasta")],["T1037", read_mol("T1037.fasta")]], [fastaName,fastaContent])
btn = gr.Button("View") btn = gr.Button("Predict")
mol = gr.HTML() mol = gr.HTML()
btn.click(fn=update, inputs=[fastaName,fastaContent], outputs=mol) btn.click(fn=update, inputs=[fastaName,fastaContent], outputs=mol)
demo.launch() demo.launch()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册