Spaces:
Running
Running
simonduerr
commited on
Commit
•
265b750
1
Parent(s):
4fd0287
Update app.py
Browse files
app.py
CHANGED
@@ -35,8 +35,11 @@ def predict(x):
|
|
35 |
|
36 |
#works
|
37 |
with gr.Blocks() as demo:
|
38 |
-
|
39 |
-
inp = Molecule3D("
|
|
|
|
|
|
|
40 |
out = Molecule3D(label="Molecule3D", reps=reps)
|
41 |
btn = gr.Button("Predict")
|
42 |
btn.click(predict, inputs=inp, outputs=out)
|
|
|
35 |
|
36 |
#works
|
37 |
with gr.Blocks() as demo:
|
38 |
+
gr.Markdown("#3dMol.js based File Component")
|
39 |
+
inp = Molecule3D("1pga.pdb",label="Molecule3D", reps=reps)
|
40 |
+
gr.Markdown("Hide viewer on Upload")
|
41 |
+
inp = Molecule3D("1pga.pdb",label="Molecule3D", reps=reps, showviewer=False)
|
42 |
+
gr.Markdown("As Output")
|
43 |
out = Molecule3D(label="Molecule3D", reps=reps)
|
44 |
btn = gr.Button("Predict")
|
45 |
btn.click(predict, inputs=inp, outputs=out)
|