tommymarto commited on
Commit
39e0d8c
Β·
1 Parent(s): 95df539
Files changed (1) hide show
  1. demo.py +1 -5
demo.py CHANGED
@@ -171,10 +171,6 @@ def on_url_change(url, state):
171
  state = state | material
172
  state['material_url'] = url
173
 
174
- # del state['topic']
175
- # del state['learningObjective']
176
- # del state['learningObjectiveList']
177
-
178
  lo_component = gr.Dropdown(label="Learning Objective", choices=[], value="placeholder", interactive=False)
179
 
180
  return [gr.Radio(label="Topic", choices=topics, interactive=True), lo_component, state]
@@ -341,7 +337,7 @@ with gr.Blocks(title="Educational AI", css=css) as demo:
341
  generate_btn = gr.Button("Generate Question")
342
 
343
  with gr.Column(scale=3):
344
- output_component = gr.HTML("<div class='markdown-body'><h3>Output</h3>Placeholder for output</div>")
345
  with gr.Row():
346
  like_btn = gr.Button("πŸ‘ like")
347
  dislike_btn = gr.Button("πŸ‘Ž dislike")
 
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]
 
337
  generate_btn = gr.Button("Generate Question")
338
 
339
  with gr.Column(scale=3):
340
+ output_component = gr.HTML("<div class='markdown-body'><h3>Output</h3><p></p></div>")
341
  with gr.Row():
342
  like_btn = gr.Button("πŸ‘ like")
343
  dislike_btn = gr.Button("πŸ‘Ž dislike")