Manaranjan commited on
Commit
4469f55
1 Parent(s): 13a4ddc

deploy at 2024-09-17 19:27:08.472333

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -121,8 +121,8 @@ async def post(d:dict):
121
  try:
122
  # Check if a file was uploaded
123
 
124
- file_path = os.path.join(basepath, d['topic'] + "_" + d['chapter'] + ".json")
125
- q_loader = load_questions(file_path)
126
  sheet_name, question_data = q_loader.random_question()
127
 
128
  return Card(
 
121
  try:
122
  # Check if a file was uploaded
123
 
124
+ # file_path = os.path.join(basepath, d['topic'] + "_" + d['chapter'] + ".json")
125
+ q_loader = load_questions(d['topic'] + "_" + d['chapter'] + ".json")
126
  sheet_name, question_data = q_loader.random_question()
127
 
128
  return Card(