Spaces:
Sleeping
Sleeping
File size: 533 Bytes
9486835 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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)
@gr.render(inputs=[labels])
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() |