import gradio as gr from src.distilabel_dataset_generator.apps.faq import app as faq_app from src.distilabel_dataset_generator.apps.sft import app as sft_app from src.distilabel_dataset_generator.apps.textcat import app as textcat_app theme = gr.themes.Monochrome( spacing_size="md", font=[gr.themes.GoogleFont("Inter"), "ui-sans-serif", "system-ui", "sans-serif"], ) css = """ .main_ui_logged_out{opacity: 0.3; pointer-events: none} .tabitem{border: 0px} .group_padding{padding: .55em} #space_model .wrap > label:last-child{opacity: 0.3; pointer-events:none} #system_prompt_examples { color: black; } @media (prefers-color-scheme: dark) { #system_prompt_examples { color: white; background-color: black; } } """ demo = gr.TabbedInterface( [textcat_app, sft_app, faq_app], ["Text Classification", "Supervised Fine-Tuning", "FAQ"], css=css, title="""
Distilabel Logo

🧬 Synthetic Data Generator

Build datasets using natural language

""", theme=theme, ) if __name__ == "__main__": demo.launch()