|
|
import gradio as gr |
|
|
|
|
|
def build_test_set_tab(): |
|
|
with gr.TabItem("π§ Test Set"): |
|
|
gr.HTML( |
|
|
""" |
|
|
<div style="margin-bottom: 10px;"> |
|
|
<span style="font-size: 1.5em; cursor: help;" title="Uncontaminated repository of exercises and study texts (not present in the prompts)"> |
|
|
βΉοΈ |
|
|
</span> |
|
|
</div> |
|
|
""" |
|
|
) |
|
|
|
|
|
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 |
|
|
|
|
|
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 (subset_choice, search_field, ) |
|
|
|