Skip to content

Commit

Permalink
Fix rejection reason title
Browse files Browse the repository at this point in the history
  • Loading branch information
Elleo committed Apr 16, 2020
1 parent c979873 commit 51347d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions generate_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

pregenerated = open('pregenerated.json', 'r')
entries = json.load(pregenerated)
print(entries)
pregenerated.close()

sess = gpt2.start_tf_sess()
Expand All @@ -14,7 +13,7 @@

for petition in petitions:
petition = petition.replace("<|startofpetition|>", "") # Sometimes this gets duplicated
petition.replace("Reason for rejection:", "<strong>Why was this petition rejected?</strong>")
petition = petition.replace("Reason for rejection:", "<strong>Why was this petition rejected?</strong>")
lines = petition.split("\n")
if lines[0].strip() == "":
start = 1
Expand Down

0 comments on commit 51347d7

Please sign in to comment.