File size: 1,215 Bytes
7c6a50c
 
 
8ce772a
7c6a50c
 
 
 
 
 
 
 
 
 
 
 
 
4ae4b2d
0c231d5
7c6a50c
 
 
 
 
42cb0d0
7c6a50c
aa71c9c
7c6a50c
 
09c24da
7c6a50c
 
 
42cb0d0
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
26
27
28
29
30
31
32
33
34
35
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 # 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, )