santoshtyss commited on
Commit
096d2db
1 Parent(s): d7c2b0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -416,7 +416,7 @@ def run_fill_questions(document_name, output_file, questions_file, delimiter):
416
  print("QGenerations")
417
  prev_para = ''
418
  count = 0
419
- variables = {}
420
  questions = []
421
 
422
  doc = Document(document_name)
@@ -444,7 +444,7 @@ def run_fill_questions(document_name, output_file, questions_file, delimiter):
444
  new_string = new_string.replace(answer, question)
445
 
446
  count += var_count
447
- variables[paragraph.text] = new_string
448
 
449
  prev_para = paragraph.text
450
 
 
416
  print("QGenerations")
417
  prev_para = ''
418
  count = 0
419
+ variables = []
420
  questions = []
421
 
422
  doc = Document(document_name)
 
444
  new_string = new_string.replace(answer, question)
445
 
446
  count += var_count
447
+ variables.append({paragraph.text : new_string })
448
 
449
  prev_para = paragraph.text
450