Peter Szemraj commited on
Commit
4399cd3
β€’
1 Parent(s): 43f2bd7

Signed-off-by: Peter Szemraj <peterszemraj+dev@gmail.com>

Files changed (3) hide show
  1. app.py +0 -2
  2. pdf2text.py +1 -1
  3. utils.py +3 -5
app.py CHANGED
@@ -21,8 +21,6 @@ import logging
21
  import os
22
  import pprint as pp
23
  import random
24
- import re
25
- import sys
26
  import time
27
  from pathlib import Path
28
 
 
21
  import os
22
  import pprint as pp
23
  import random
 
 
24
  import time
25
  from pathlib import Path
26
 
pdf2text.py CHANGED
@@ -8,7 +8,7 @@ import re
8
  import shutil
9
  import time
10
  from datetime import date
11
- from os.path import basename, dirname, join
12
  from pathlib import Path
13
 
14
  logging.basicConfig(
 
8
  import shutil
9
  import time
10
  from datetime import date
11
+ from os.path import join
12
  from pathlib import Path
13
 
14
  logging.basicConfig(
utils.py CHANGED
@@ -2,13 +2,11 @@
2
  utils.py - Utility functions for the project.
3
  """
4
  import logging
5
- import os
6
  import re
7
- import string
8
  import subprocess
9
  from collections import defaultdict, deque
10
  from datetime import datetime, timedelta
11
- from itertools import combinations, islice
12
  from pathlib import Path
13
  from typing import List
14
 
@@ -440,7 +438,7 @@ def saves_summary(
440
  encoding="utf-8",
441
  ) as fo:
442
  fo.write("\n")
443
- fo.write(f"## Section Scores:\n\n")
444
  fo.writelines(scores_text)
445
  fo.write("\n\n")
446
  fo.write(f"Date: {get_timestamp()}\n\n")
@@ -449,4 +447,4 @@ def saves_summary(
449
  fo.write("## Parameters:\n\n")
450
  for key, value in kwargs.items():
451
  fo.write(f"{key}: {value}\n")
452
- return outpath
 
2
  utils.py - Utility functions for the project.
3
  """
4
  import logging
 
5
  import re
 
6
  import subprocess
7
  from collections import defaultdict, deque
8
  from datetime import datetime, timedelta
9
+ from itertools import combinations
10
  from pathlib import Path
11
  from typing import List
12
 
 
438
  encoding="utf-8",
439
  ) as fo:
440
  fo.write("\n")
441
+ fo.write("## Section Scores:\n\n")
442
  fo.writelines(scores_text)
443
  fo.write("\n\n")
444
  fo.write(f"Date: {get_timestamp()}\n\n")
 
447
  fo.write("## Parameters:\n\n")
448
  for key, value in kwargs.items():
449
  fo.write(f"{key}: {value}\n")
450
+ return str(outpath.resolve())