Spaces:
Build error
Build error
Update app.py
Browse files
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 =
|
| 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")
|