Skip to content

Commit 92aeefc

Browse files
committed
re-add init csv gen on first run
1 parent 8b771bf commit 92aeefc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
import base64
44
import matplotlib.pyplot as plt
55
import pandas as pd
6+
import subprocess
67
import os
8+
9+
if not os.path.exists("probability_matrix_women_likes_men.csv"):
10+
print("detected first run. Attempting to generate csv templates.")
11+
subprocess.run(["python", "init.py"], check=True)
12+
713
import numpy as np
814
from backend import run_dating_simulation, all_men_ids, all_women_ids, all_user_ids
915

0 commit comments

Comments
 (0)