tommymarto commited on
Commit
11c3768
·
verified ·
1 Parent(s): 39e0d8c

Update demo.py

Browse files
Files changed (1) hide show
  1. demo.py +3 -3
demo.py CHANGED
@@ -171,7 +171,7 @@ def on_url_change(url, state):
171
  state = state | material
172
  state['material_url'] = url
173
 
174
- lo_component = gr.Dropdown(label="Learning Objective", choices=[], value="placeholder", interactive=False)
175
 
176
  return [gr.Radio(label="Topic", choices=topics, interactive=True), lo_component, state]
177
 
@@ -326,8 +326,8 @@ with gr.Blocks(title="Educational AI", css=css) as demo:
326
 
327
  with gr.Column(scale=3):
328
  language_component = gr.Dropdown(languages, label="Exercise Language", value="English")
329
- topic_component = gr.Radio(label="Topic", choices=["placeholder"], interactive=False)
330
- lo_component = gr.Dropdown(label="Learning Objective", choices=[], value="placeholder", interactive=False)
331
  question_type_component = gr.Dropdown(label="Question Type", choices=type_of_exercise, type="index", value=0)
332
 
333
  correct_answers_component = gr.Number(value=1, minimum=1, maximum=3, step=1, label="Number of correct answers", visible=False)
 
171
  state = state | material
172
  state['material_url'] = url
173
 
174
+ lo_component = gr.Dropdown(label="Learning Objective", choices=[], value="placeholder", interactive=True)
175
 
176
  return [gr.Radio(label="Topic", choices=topics, interactive=True), lo_component, state]
177
 
 
326
 
327
  with gr.Column(scale=3):
328
  language_component = gr.Dropdown(languages, label="Exercise Language", value="English")
329
+ topic_component = gr.Radio(label="Topic", choices=["placeholder"], interactive=True)
330
+ lo_component = gr.Dropdown(label="Learning Objective", choices=[], value="placeholder", interactive=True)
331
  question_type_component = gr.Dropdown(label="Question Type", choices=type_of_exercise, type="index", value=0)
332
 
333
  correct_answers_component = gr.Number(value=1, minimum=1, maximum=3, step=1, label="Number of correct answers", visible=False)