Spaces:
Runtime error
Runtime error
File size: 372 Bytes
deb9a8b |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import gradio as gr
from gradio_molgallery3d import MolGallery3D
example = MolGallery3D().example_inputs()
with gr.Blocks() as demo:
with gr.Row():
MolGallery3D(label="Blank"), # blank component
with gr.Row():
MolGallery3D(value=[(mol, str(i+1)) for i, mol in enumerate(example)], automatic_rotation=True), # populated component
demo.launch() |