Spaces:
Running
on
L4
Running
on
L4
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,10 +2,15 @@ import gradio as gr
|
|
| 2 |
from gradio_molecule3d import Molecule3D
|
| 3 |
from gradio_cofoldinginput import CofoldingInput
|
| 4 |
|
|
|
|
|
|
|
| 5 |
|
| 6 |
with gr.Blocks() as blocks:
|
| 7 |
gr.Markdown("# Boltz-1")
|
| 8 |
inp = CofoldingInput(label="Input")
|
| 9 |
out = Molecule3D(label="Output")
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
blocks.launch()
|
|
|
|
| 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 |
inp = CofoldingInput(label="Input")
|
| 11 |
out = Molecule3D(label="Output")
|
| 12 |
+
btn = gr.Button("predict")
|
| 13 |
+
|
| 14 |
+
btn.click(predict, inp=inp, out=out)
|
| 15 |
|
| 16 |
blocks.launch()
|