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, )