Update app.py
Browse files
app.py
CHANGED
|
@@ -198,7 +198,7 @@ def main():
|
|
| 198 |
uploaded_file = st.file_uploader("Upload a PDF document", type=["pdf"])
|
| 199 |
if uploaded_file is not None:
|
| 200 |
text = extract_text_from_pdf(uploaded_file)
|
| 201 |
-
num_questions = st.number_input("Enter the number of questions", min_value=1, max_value=
|
| 202 |
quiz_type = st.selectbox("Select the type of Question", ["multiple-choice", "true-false", "open-ended", "fill-in-the-blank", "mixed"])
|
| 203 |
expertise = st.text_input("Enter the domain of the questions to be generated.")
|
| 204 |
|
|
|
|
| 198 |
uploaded_file = st.file_uploader("Upload a PDF document", type=["pdf"])
|
| 199 |
if uploaded_file is not None:
|
| 200 |
text = extract_text_from_pdf(uploaded_file)
|
| 201 |
+
num_questions = st.number_input("Enter the number of questions", min_value=1, max_value=20, value=3)
|
| 202 |
quiz_type = st.selectbox("Select the type of Question", ["multiple-choice", "true-false", "open-ended", "fill-in-the-blank", "mixed"])
|
| 203 |
expertise = st.text_input("Enter the domain of the questions to be generated.")
|
| 204 |
|