drigoni's picture
Upload folder using huggingface_hub
deb9a8b verified
raw
history blame contribute delete
372 Bytes
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()