import gradio as gr def build_test_set_tab(): with gr.TabItem("🚧 Test Set"): gr.HTML( """
â„šī¸
""" ) with gr.Row(): with gr.Column(scale=1): subset_choice = gr.Dropdown( choices=["Exercises ❔🚧", "Study Texts ī¸â„šī¸đŸš§", "Learning Objectives 🧠🚧", "Show all"], value="Show all", label="Subset Filter 🚧" ) with gr.Column(scale=2): pass # only here to keep the first column in check: force narrower dropdown search_field = gr.Textbox(label="Text Search 🚧", placeholder="Dummy placeholder element, doesn't work") with open("test samples.md", "r", encoding="utf-8") as file: markdown_content = file.read() gr.Markdown(markdown_content) # Return references return (subset_choice, search_field, )