Samay42 commited on
Commit
9e55b98
·
verified ·
1 Parent(s): 369caf5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -196,7 +196,7 @@ def main():
196
 
197
  uploaded_file = st.file_uploader("Upload a PDF or Word document")
198
  if uploaded_file is not None:
199
- text = extract_text_from_pdf_or_docx(uploaded_file)
200
  num_questions = st.number_input("Enter the number of questions", min_value=1, max_value=10, value=3)
201
  quiz_type = st.selectbox("Select the quiz type", ["multiple-choice", "true-false", "open-ended", "fill-in-the-blank", "mixed"])
202
  expertise = st.text_input("Enter the field of expertise for the quiz")
 
196
 
197
  uploaded_file = st.file_uploader("Upload a PDF or Word document")
198
  if uploaded_file is not None:
199
+ text = extract_text_from_pdf(uploaded_file)
200
  num_questions = st.number_input("Enter the number of questions", min_value=1, max_value=10, value=3)
201
  quiz_type = st.selectbox("Select the quiz type", ["multiple-choice", "true-false", "open-ended", "fill-in-the-blank", "mixed"])
202
  expertise = st.text_input("Enter the field of expertise for the quiz")