Spaces:
Runtime error
Runtime error
Simon Duerr
commited on
Commit
•
6c93db3
1
Parent(s):
ce9089f
fix formatting and public link
Browse files
app.py
CHANGED
@@ -524,7 +524,7 @@ def predict_web(
|
|
524 |
num_models,
|
525 |
):
|
526 |
if os.path.exists("/home/user/app"):
|
527 |
-
public_link = "https://simonduerr-rosettafold2.hf.space
|
528 |
else:
|
529 |
public_link = "http://localhost:7860"
|
530 |
|
@@ -556,11 +556,11 @@ with gr.Blocks() as rosettafold:
|
|
556 |
<br> Heavily based on [RoseTTAFold2 ColabFold notebook](https://colab.research.google.com/github/sokrypton/ColabFold/blob/main/RoseTTAFold2.ipynb)"""
|
557 |
)
|
558 |
with gr.Accordion("How to use in PyMol", open=False):
|
559 |
-
gr.
|
560 |
-
"""
|
561 |
-
run rosettafold_pymol.py
|
562 |
-
rosettafold2 sequence, jobname, [sym, order, msa_concat_mode, msa_method, pair_mode, collapse_identical, num_recycles, use_mlm, use_dropout, max_msa, random_seed, num_models]
|
563 |
-
color_plddt jobname
|
564 |
"""
|
565 |
)
|
566 |
sequence = gr.Textbox(
|
|
|
524 |
num_models,
|
525 |
):
|
526 |
if os.path.exists("/home/user/app"):
|
527 |
+
public_link = "https://simonduerr-rosettafold2.hf.space"
|
528 |
else:
|
529 |
public_link = "http://localhost:7860"
|
530 |
|
|
|
556 |
<br> Heavily based on [RoseTTAFold2 ColabFold notebook](https://colab.research.google.com/github/sokrypton/ColabFold/blob/main/RoseTTAFold2.ipynb)"""
|
557 |
)
|
558 |
with gr.Accordion("How to use in PyMol", open=False):
|
559 |
+
gr.HTML(
|
560 |
+
"""<code>os.system('wget https://huggingface.co/spaces/simonduerr/rosettafold2/raw/main/rosettafold_pymol.py') <br>
|
561 |
+
run rosettafold_pymol.py <br>
|
562 |
+
rosettafold2 sequence, jobname, [sym, order, msa_concat_mode, msa_method, pair_mode, collapse_identical, num_recycles, use_mlm, use_dropout, max_msa, random_seed, num_models] <br>
|
563 |
+
color_plddt jobname</code>
|
564 |
"""
|
565 |
)
|
566 |
sequence = gr.Textbox(
|