Spaces:
Running
on
L4
Running
on
L4
Commit
·
585edee
1
Parent(s):
9d70db0
update environment and boltz2 version
Browse files- app.py +2 -2
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -116,12 +116,12 @@ def predict(jobname, inputs, recycling_steps, sampling_steps, diffusion_samples)
|
|
| 116 |
os.system(f"boltz predict {jobname}/{jobname}.yaml --use_msa_server --out_dir {jobname} --recycling_steps {recycling_steps} --sampling_steps {sampling_steps} --diffusion_samples {diffusion_samples} --override --output_format pdb")
|
| 117 |
print(os.listdir(jobname))
|
| 118 |
print(os.listdir(f"{jobname}/boltz_results_{jobname}/predictions/"))
|
| 119 |
-
return Molecule3D(f"{jobname}/boltz_results_{jobname}/predictions/{jobname}_model_0.cif", label="Output", reps=representations)
|
| 120 |
except Exception as e:
|
| 121 |
raise gr.Error(f"failed with error:{e}")
|
| 122 |
|
| 123 |
with gr.Blocks() as blocks:
|
| 124 |
-
gr.Markdown("# Boltz
|
| 125 |
gr.Markdown("""Open GUI for running [Boltz-1 model](https://github.com/jwohlwend/boltz/) <br>
|
| 126 |
Key components:
|
| 127 |
- MMSeqs2 Webserver [Mirdita et al.](https://www.nature.com/articles/s41592-022-01488-1)
|
|
|
|
| 116 |
os.system(f"boltz predict {jobname}/{jobname}.yaml --use_msa_server --out_dir {jobname} --recycling_steps {recycling_steps} --sampling_steps {sampling_steps} --diffusion_samples {diffusion_samples} --override --output_format pdb")
|
| 117 |
print(os.listdir(jobname))
|
| 118 |
print(os.listdir(f"{jobname}/boltz_results_{jobname}/predictions/"))
|
| 119 |
+
return Molecule3D(f"{jobname}/boltz_results_{jobname}/predictions/{jobname}/{jobname}_model_0.cif", label="Output", reps=representations)
|
| 120 |
except Exception as e:
|
| 121 |
raise gr.Error(f"failed with error:{e}")
|
| 122 |
|
| 123 |
with gr.Blocks() as blocks:
|
| 124 |
+
gr.Markdown("# Boltz")
|
| 125 |
gr.Markdown("""Open GUI for running [Boltz-1 model](https://github.com/jwohlwend/boltz/) <br>
|
| 126 |
Key components:
|
| 127 |
- MMSeqs2 Webserver [Mirdita et al.](https://www.nature.com/articles/s41592-022-01488-1)
|
requirements.txt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
-
boltz
|
| 2 |
gradio_molecule3d
|
| 3 |
gradio_cofoldinginput
|
|
|
|
| 1 |
+
boltz[cuda]
|
| 2 |
gradio_molecule3d
|
| 3 |
gradio_cofoldinginput
|