osanseviero commited on
Commit
9960f8b
·
1 Parent(s): d61d9e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -90,13 +90,15 @@ examples = [
90
  ]
91
 
92
  with demo:
93
- gr.Markdown("# PDB viewer using 3Dmol.js")
 
94
  with gr.Row():
95
  with gr.Box():
96
- name = gr.Textbox(label="Protein example")
97
- inp = gr.Textbox(label="Protein sequence")
98
  gr.Examples(examples, [name, inp])
99
  btn = gr.Button("Predict structure")
100
  mol = gr.HTML()
101
  btn.click(fn=update, inputs=inp, outputs=mol)
 
102
  demo.launch()
 
90
  ]
91
 
92
  with demo:
93
+ gr.Markdown("# ESM-2 Protein Folding demo")
94
+ gr.Markdown("You can input a single protein sequence and you get the predicted protein structure")
95
  with gr.Row():
96
  with gr.Box():
97
+ name = gr.Textbox(label="Protein example", value=examples[1][0])
98
+ inp = gr.Textbox(label="Protein sequence", lines=3, value=examples[1][1])
99
  gr.Examples(examples, [name, inp])
100
  btn = gr.Button("Predict structure")
101
  mol = gr.HTML()
102
  btn.click(fn=update, inputs=inp, outputs=mol)
103
+ gr.Markdown("[ESM](https://esmatlas.com/about) by Meta using the API. You can also use Hugging Face `transformers` as shown [here](https://github.com/huggingface/notebooks/blob/main/examples/protein_folding.ipynb), which is supported since [v4.24](https://github.com/huggingface/transformers/releases/tag/v4.24.0).")
104
  demo.launch()