Spaces:
Paused
Paused
Commit
·
a9b9087
1
Parent(s):
1d3b518
Update app.py
Browse files
app.py
CHANGED
@@ -151,16 +151,13 @@ with demo:
|
|
151 |
with gr.Row():
|
152 |
inp = gr.Textbox(label="Protein sequence", lines=3, value=DEFAULT_SEQ, placeholder="Write your protein sequence here...")
|
153 |
with gr.Column():
|
154 |
-
|
155 |
-
btn = gr.Button("🔬 Predict Structure ").style(full_width=False)
|
156 |
-
with gr.Row():
|
157 |
-
download = gr.File(label="Download file")
|
158 |
mol = gr.HTML(update)
|
159 |
btn.click(fn=update, inputs=inp, outputs=[mol, download])
|
160 |
-
|
161 |
name.change(fn=suggest, inputs=name, outputs=inp)
|
162 |
name.change(fn=lambda :"", inputs=None, outputs=mol)
|
163 |
inp.change(fn=update, inputs=inp, outputs=mol)
|
164 |
|
165 |
gr.Markdown("A demo of [ESM](https://esmatlas.com/about) by Meta using the API. You can also use ESM in Hugging Face `transformers` as shown [here](https://github.com/huggingface/notebooks/blob/ab81a52182acf691e6743a50bc47bd1c1622086f/examples/protein_folding.ipynb), which is supported since [v4.24](https://github.com/huggingface/transformers/releases/tag/v4.24.0).")
|
166 |
-
demo.launch()
|
|
|
151 |
with gr.Row():
|
152 |
inp = gr.Textbox(label="Protein sequence", lines=3, value=DEFAULT_SEQ, placeholder="Write your protein sequence here...")
|
153 |
with gr.Column():
|
154 |
+
btn = gr.Button("🔬 Predict Structure ").style(full_width=False)
|
|
|
|
|
|
|
155 |
mol = gr.HTML(update)
|
156 |
btn.click(fn=update, inputs=inp, outputs=[mol, download])
|
157 |
+
download = gr.File(label="Download file")
|
158 |
name.change(fn=suggest, inputs=name, outputs=inp)
|
159 |
name.change(fn=lambda :"", inputs=None, outputs=mol)
|
160 |
inp.change(fn=update, inputs=inp, outputs=mol)
|
161 |
|
162 |
gr.Markdown("A demo of [ESM](https://esmatlas.com/about) by Meta using the API. You can also use ESM in Hugging Face `transformers` as shown [here](https://github.com/huggingface/notebooks/blob/ab81a52182acf691e6743a50bc47bd1c1622086f/examples/protein_folding.ipynb), which is supported since [v4.24](https://github.com/huggingface/transformers/releases/tag/v4.24.0).")
|
163 |
+
demo.launch(debug=True)
|