File size: 366 Bytes
7e5d7c9
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13

import gradio as gr
from gradio_molgallery2d import MolGallery2D

example = MolGallery2D().example_inputs()

with gr.Blocks() as demo:
    with gr.Row():
        MolGallery2D(label="Blank"),  # blank component
    with gr.Row():
        MolGallery2D(value=[(mol, str(i+1)) for i, mol in enumerate(example)], label="Populated"),  # populated component

demo.launch()