Spaces:
Running
on
L4
Running
on
L4
simonduerr
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -2,16 +2,22 @@ import gradio as gr
|
|
2 |
from gradio_molecule3d import Molecule3D
|
3 |
from gradio_cofoldinginput import CofoldingInput
|
4 |
|
5 |
-
def predict(inputs):
|
6 |
return ""
|
7 |
|
8 |
with gr.Blocks() as blocks:
|
9 |
gr.Markdown("# Boltz-1")
|
10 |
-
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
btn = gr.Button("predict")
|
14 |
|
15 |
-
btn.click(fn=predict, inputs=[jobname,inp], outputs=[out], api_name="predict")
|
16 |
|
17 |
blocks.launch(ssr_mode=False)
|
|
|
2 |
from gradio_molecule3d import Molecule3D
|
3 |
from gradio_cofoldinginput import CofoldingInput
|
4 |
|
5 |
+
def predict(jobname, inputs, recycling_steps, sampling_steps, diffusion_samples):
|
6 |
return ""
|
7 |
|
8 |
with gr.Blocks() as blocks:
|
9 |
gr.Markdown("# Boltz-1")
|
10 |
+
with gr.Tab("Main"):
|
11 |
+
jobname = gr.Textbox(label="Jobname")
|
12 |
+
inp = CofoldingInput(label="Input")
|
13 |
+
out = Molecule3D(label="Output")
|
14 |
+
with gr.Tab("Settings"):
|
15 |
+
recycling_steps =gr.Slider(value=3, minimum=0)
|
16 |
+
sampling_steps = gr.Slider(value=200, minimum=0)
|
17 |
+
diffusion_samples = gr.Slider(value=1)
|
18 |
+
|
19 |
btn = gr.Button("predict")
|
20 |
|
21 |
+
btn.click(fn=predict, inputs=[jobname,inp, recycling_steps, sampling_steps, diffusion_samples], outputs=[out], api_name="predict")
|
22 |
|
23 |
blocks.launch(ssr_mode=False)
|