Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| with gr.Blocks() as demo: | |
| gr.Markdown("# Train a Text Classifier with Synthetic Data") | |
| labels = gr.Dropdown(choices=[], value=[], label="Classes", allow_custom_value=True, multiselect=True) | |
| def show_textbox(labels_): | |
| with gr.Row(): | |
| for label in labels_: | |
| gr.TextArea(label=f"Samples for class: {label}") | |
| if len(labels_)>=2: | |
| with gr.Row(): | |
| gr.Button("TRAIN!", variant="primary") | |
| demo.launch() |