Apply Jan's feedback

This commit is contained in:
Dominic Zimmer
2022-08-27 01:23:23 +02:00
parent 985f933859
commit 966d96f643
2 changed files with 8 additions and 6 deletions

View File

@@ -22,9 +22,9 @@ print(f"[INFO] Found {len(sentences['hard'])} hard prompts")
""" Postprocess the content string to look nice in the latex tabular cell """
def make_cell(content: str):
return fr"""\vspace{{0.5cm}}
\rule{{3cm}}{{0.15mm}} \, \vspace{{.3cm}} \newline \small {content}
\vspace{{0.5cm}}"""
#new, oben mehr space, Strich länger und \small removed
return fr"""\vspace{{1cm}} \rule{{4.5cm}}{{0.15mm}} \, \vspace{{.3cm}} \newline {content} \vspace{{0.5cm}}"""
def substitute_texts(text: str, substitutions: list[str]):
return reduce( \
@@ -50,5 +50,5 @@ def gen_board(num: int = 1):
with open(output_dir + filename,"w") as f:
f.writelines(pick)
gen_board(40)
gen_board(8)
print("Done!")