Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ import gradio as gr
|
|
| 7 |
|
| 8 |
from gradio_molecule3d import Molecule3D
|
| 9 |
|
| 10 |
-
os.system("pip install allmetal3d-0.4.0-py3-none-any.whl")
|
| 11 |
|
| 12 |
os.system("mkdir -p /home/user/.local/share/allmetal3d/weights")
|
| 13 |
|
|
@@ -19,7 +19,7 @@ from allmetal3d.utils.main import predict, predict_cli, update_mode
|
|
| 19 |
|
| 20 |
@spaces.GPU
|
| 21 |
def predict_zero_gpu(pdb, models, pthreshold, threshold, batch_size, mode, central_residue, radius):
|
| 22 |
-
return predict(pdb, models, pthreshold, threshold, batch_size, mode, central_residue, radius)
|
| 23 |
|
| 24 |
with gr.Blocks() as blocks:
|
| 25 |
gr.Markdown("## AllMetal3D and Water3D")
|
|
|
|
| 7 |
|
| 8 |
from gradio_molecule3d import Molecule3D
|
| 9 |
|
| 10 |
+
# os.system("pip install allmetal3d-0.4.0-py3-none-any.whl")
|
| 11 |
|
| 12 |
os.system("mkdir -p /home/user/.local/share/allmetal3d/weights")
|
| 13 |
|
|
|
|
| 19 |
|
| 20 |
@spaces.GPU
|
| 21 |
def predict_zero_gpu(pdb, models, pthreshold, threshold, batch_size, mode, central_residue, radius):
|
| 22 |
+
return predict(pdb, models, pthreshold, threshold, batch_size, mode, central_residue, radius, backend="joblib")
|
| 23 |
|
| 24 |
with gr.Blocks() as blocks:
|
| 25 |
gr.Markdown("## AllMetal3D and Water3D")
|