Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ def extract_text_from_pdf(pdf_file):
|
|
100 |
except Exception as e:
|
101 |
return None, f"Error processing PDF: {str(e)}"
|
102 |
|
103 |
-
def generate_questions_with_retry(knowledge_material, question_type, cognitive_level, extra_instructions, case_based, num_choices=None, max_retries=3):
|
104 |
"""Generate questions and update API usage"""
|
105 |
|
106 |
# Check and update API usage before generating
|
|
|
100 |
except Exception as e:
|
101 |
return None, f"Error processing PDF: {str(e)}"
|
102 |
|
103 |
+
def generate_questions_with_retry(username, knowledge_material, question_type, cognitive_level, extra_instructions, case_based, num_choices=None, max_retries=3):
|
104 |
"""Generate questions and update API usage"""
|
105 |
|
106 |
# Check and update API usage before generating
|