Spark Chou
commited on
Commit
·
80d6874
1
Parent(s):
bf1f751
app.py
CHANGED
@@ -862,22 +862,25 @@ with welcome_page:
|
|
862 |
gr.Markdown("# AI Detective: Can you spot the AI?\nYou will hear a series of dialogues. Please determine which respondent is AI.")
|
863 |
start_btn = gr.Button("Start Challenge", variant="primary")
|
864 |
|
865 |
-
with info_page:
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
|
|
|
|
|
|
881 |
with sample_page:
|
882 |
gr.Markdown("## Sample Analysis\nPlease select a dimension to study and practice scoring. All dimensions use the same sample audio.")
|
883 |
sample_dimension_selector = gr.Radio(DIMENSION_TITLES, label="Select a Dimension", value=DIMENSION_TITLES[0])
|
|
|
862 |
gr.Markdown("# AI Detective: Can you spot the AI?\nYou will hear a series of dialogues. Please determine which respondent is AI.")
|
863 |
start_btn = gr.Button("Start Challenge", variant="primary")
|
864 |
|
865 |
+
# with info_page:
|
866 |
+
with gr.Blocks() as demo:
|
867 |
+
with gr.Page(name="info") as info_page:
|
868 |
+
with gr.Column():
|
869 |
+
gr.Markdown("## Please provide some basic information")
|
870 |
+
username_input = gr.Textbox(label="Username", placeholder="Please enter your username")
|
871 |
+
age_input = gr.Radio(["Under 18", "18-25", "26-35", "36-50", "Over 50"], label="Age")
|
872 |
+
gender_input = gr.Radio(["Male", "Female", "Other"], label="Gender")
|
873 |
+
education_input = gr.Radio(["High school or below", "Bachelor's", "Master's", "PhD", "Other"], label="Education")
|
874 |
+
education_other_input = gr.Textbox(label="Please specify your education", visible=False, interactive=False)
|
875 |
+
ai_experience_input = gr.Radio([
|
876 |
+
"Never used",
|
877 |
+
"Occasionally encountered (e.g., watched others use it)",
|
878 |
+
"Used a few times, familiar with basic functions",
|
879 |
+
"Frequent user with some experience",
|
880 |
+
"Very familiar, have used multiple AI tools extensively"
|
881 |
+
], label="Familiarity with AI tools")
|
882 |
+
submit_info_btn = gr.Button("Submit and Start Sample", variant="primary", interactive=False)
|
883 |
+
|
884 |
with sample_page:
|
885 |
gr.Markdown("## Sample Analysis\nPlease select a dimension to study and practice scoring. All dimensions use the same sample audio.")
|
886 |
sample_dimension_selector = gr.Radio(DIMENSION_TITLES, label="Select a Dimension", value=DIMENSION_TITLES[0])
|