import gradio as gr css = """ .plugin-accordion button span:first-child { font-size: 1.25rem !important; } """ with gr.Blocks(css=css) as pipeline_builder: gr.Markdown("# 🚰 Impact Framework Pipeline Builder") gr.Markdown("Visually construct your Impact Framework manifest file pipeline with this helpful interface.") gr.Markdown("## Plugin Selector") plugin_selector = gr.Dropdown(["Watt-Time","CO2.js","TDP Finder","Cloud Metadata"], label="Plugin",value="Cloud Metadata",interactive=True,info="Plugins available on the Impact Framework Registry") with gr.Accordion("Chosen Plugin",open=True,elem_classes=["plugin-accordion"]): gr.Markdown("## Cloud Metadata") with gr.Row(variant="panel"): plugin_input_1 = gr.Dropdown(["AWS","GCP","Azure","Other"], label="Cloud Vendor", info="Where is your data hosted?",interactive=True,value="AWS") plugin_input_2 = gr.Dropdown(["C5 Metal","d3.xlarge","m5.large"], label="Cloud Instance", info="Wnat cloud instance is your server using?",interactive=True,value="m5.large") with gr.Row(): plugin_input_finder_btn = gr.Button("Help me find my inputs") with gr.Accordion("Find your cloud metadata inputs",open=True,elem_classes=["plugin-accordion"]): plugin_input_finder_url = gr.Textbox(placeholder="https://[your_website.com]", label="Your website URL", info="If you are measuring energy based on a hosted website, enter the URL") gr.Markdown("###