Spaces:
Sleeping
Sleeping
File size: 1,043 Bytes
d2bb5af |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
with gr.Blocks() as demo:
gr.Markdown("# Dataset Filter and Push")
with gr.Row():
dataset_name_input = gr.Textbox(label="Source Dataset Name (e.g., declare-lab/audio-alpaca)", value="declare-lab/audio-alpaca")
split_name_input = gr.Textbox(label="Split Name (e.g., train)", value="train")
keywords_input = gr.Textbox(label="Keywords (comma-separated, e.g., dog, cat, bird)", value="dog, cat, bird")
with gr.Row():
new_dataset_repo_id_input = gr.Textbox(label="New Dataset Repo ID (e.g., your_username/your_dataset)")
hf_token_input = gr.Textbox(label="Hugging Face Token", type="password")
submit_button = gr.Button("Filter and Push")
with gr.Row():
output_text = gr.Textbox(label="Status")
dataset_output_link = gr.Textbox(label="Dataset URL")
submit_button.click(
filter_and_push,
inputs=[dataset_name_input, split_name_input, keywords_input, new_dataset_repo_id_input, hf_token_input],
outputs=[output_text, dataset_output_link],
) |