Truong-Phuc Nguyen commited on
Commit
c300f88
1 Parent(s): e7fcbb8

Update AlphaEdu.py

Browse files
Files changed (1) hide show
  1. AlphaEdu.py +2 -1
AlphaEdu.py CHANGED
@@ -93,7 +93,8 @@ btn_generate = col_21.button(label='Generate questions', use_container_width=Tru
93
 
94
  if btn_generate == True:
95
  with st.spinner(text='Generating 10 pairs questions-answers. Please wait ...'):
96
- st.session_state.output = generateQA(context=context_values)
 
97
 
98
  if btn_show_answer:
99
  if st.session_state.output != '':
 
93
 
94
  if btn_generate == True:
95
  with st.spinner(text='Generating 10 pairs questions-answers. Please wait ...'):
96
+ small_context = context_values.split('\n')[0]
97
+ st.session_state.output = generateQA(context=small_context)
98
 
99
  if btn_show_answer:
100
  if st.session_state.output != '':