rahul-appu commited on
Commit
0f258eb
·
verified ·
1 Parent(s): 1c9c128

Update mcq.py

Browse files
Files changed (1) hide show
  1. mcq.py +42 -11
mcq.py CHANGED
@@ -91,19 +91,50 @@ def post_interface():
91
  topics = gr.Textbox(label="Topics (comma-separated)", value="Light")
92
  number_of_questions = gr.Number(label="Number of Questions", value=20)
93
 
94
- multiple_answer = gr.Slider(label="Multiple Answer Questions (%)", minimum=0, maximum=100, value=100)
95
- single_answer = gr.Slider(label="Single Answer Questions (%)", minimum=0, maximum=100, value=0)
 
 
 
 
96
 
97
- easy = gr.Slider(label="Easy Questions (%)", minimum=0, maximum=100, value=0)
98
- medium = gr.Slider(label="Medium Questions (%)", minimum=0, maximum=100, value=0)
99
- hard = gr.Slider(label="Hard Questions (%)", minimum=0, maximum=100, value=0)
 
 
 
 
 
 
 
 
 
 
100
 
101
- remember = gr.Slider(label="Remember (%)", minimum=0, maximum=100, value=0)
102
- understand = gr.Slider(label="Understand (%)", minimum=0, maximum=100, value=0)
103
- apply = gr.Slider(label="Apply (%)", minimum=0, maximum=100, value=0)
104
- analyze = gr.Slider(label="Analyze (%)", minimum=0, maximum=100, value=0)
105
- evaluate = gr.Slider(label="Evaluate (%)", minimum=0, maximum=100, value=0)
106
- create = gr.Slider(label="Create (%)", minimum=0, maximum=100, value=0)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
 
108
  hint = gr.Radio(label="Hint", choices=["Yes", "No"], value="No")
109
  curricular_goal = gr.Radio(label="Curricular Goal", choices=["Yes", "No"], value="No")
 
91
  topics = gr.Textbox(label="Topics (comma-separated)", value="Light")
92
  number_of_questions = gr.Number(label="Number of Questions", value=20)
93
 
94
+ gr.Markdown("## Question Type Distribution (Multiple Answer, Single Answer)")
95
+ with gr.Row():
96
+ with gr.Column():
97
+ multiple_answer = gr.Number(label="Multiple Answer Questions (%)", minimum=0, maximum=100, value=100)
98
+ with gr.Column():
99
+ single_answer = gr.Number(label="Single Answer Questions (%)", minimum=0, maximum=100, value=0)
100
 
101
+ # easy = gr.Slider(label="Easy Questions (%)", minimum=0, maximum=100, value=0)
102
+ # medium = gr.Slider(label="Medium Questions (%)", minimum=0, maximum=100, value=0)
103
+ # hard = gr.Slider(label="Hard Questions (%)", minimum=0, maximum=100, value=0)
104
+
105
+ gr.Markdown("## Difficulty Distribution (easy, medium, hard)")
106
+ # Difficulty Distribution (easy, medium, hard)
107
+ with gr.Row():
108
+ with gr.Column():
109
+ easy = gr.Number(label="Easy", minimum=0, maximum=100, value=0)
110
+ with gr.Column():
111
+ medium = gr.Number(label="Medium", minimum=0, maximum=100, value=0)
112
+ with gr.Column():
113
+ hard = gr.Number(label="Hard", minimum=0, maximum=100, value=0)
114
 
115
+ # remember = gr.Slider(label="Remember (%)", minimum=0, maximum=100, value=0)
116
+ # understand = gr.Slider(label="Understand (%)", minimum=0, maximum=100, value=0)
117
+ # apply = gr.Slider(label="Apply (%)", minimum=0, maximum=100, value=0)
118
+ # analyze = gr.Slider(label="Analyze (%)", minimum=0, maximum=100, value=0)
119
+ # evaluate = gr.Slider(label="Evaluate (%)", minimum=0, maximum=100, value=0)
120
+ # create = gr.Slider(label="Create (%)", minimum=0, maximum=100, value=0)
121
+
122
+ gr.Markdown("## Bloom Taxonomy Distribution (Remember, Understand, Apply, Analyze, Evaluate, Create)")
123
+ # Bloom Taxonomy Distribution (Remember, Understand, Apply, Analyze, Evaluate, Create)
124
+ with gr.Row():
125
+ with gr.Column():
126
+ remember = gr.Number(minimum=0, maximum=100, step=1, label="Remember", value=0)
127
+ with gr.Column():
128
+ understand = gr.Number(minimum=0, maximum=100, step=1, label="Understand", value=0)
129
+ with gr.Column():
130
+ apply = gr.Number(minimum=0, maximum=100, step=1, label="Apply", value=0)
131
+ with gr.Row():
132
+ with gr.Column():
133
+ analyze = gr.Number(minimum=0, maximum=100, step=1, label="Analyze", value=0)
134
+ with gr.Column():
135
+ evaluate = gr.Number(minimum=0, maximum=100, step=1, label="Evaluate", value=0)
136
+ with gr.Column():
137
+ create = gr.Number(minimum=0, maximum=100, step=1, label="Create", value=0)
138
 
139
  hint = gr.Radio(label="Hint", choices=["Yes", "No"], value="No")
140
  curricular_goal = gr.Radio(label="Curricular Goal", choices=["Yes", "No"], value="No")