kanneboinakumar commited on
Commit
9f18bfb
·
verified ·
1 Parent(s): c7d42ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,7 +81,7 @@ if st.sidebar.button("Generate MCQs"):
81
  st.error("Please upload a PDF file.")
82
  else:
83
  with st.spinner("Extracting text and generating MCQs..."):
84
- text = extract_text_from_pdf(pdf_file)
85
  try:
86
  response = mcq_chain.run(text=text, number=str(number_of_questions))
87
  mcqs_json = json.loads(response[8:-3])
 
81
  st.error("Please upload a PDF file.")
82
  else:
83
  with st.spinner("Extracting text and generating MCQs..."):
84
+ text = extract_text(pdf_file)
85
  try:
86
  response = mcq_chain.run(text=text, number=str(number_of_questions))
87
  mcqs_json = json.loads(response[8:-3])