Rathapoom commited on
Commit
bdb85d6
1 Parent(s): 5e4d276

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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