Jensen-holm commited on
Commit
b95c374
·
1 Parent(s): 8f10c28

think I might have to programatically create the path for the images ...

Browse files
Files changed (2) hide show
  1. cluster/plot.py +1 -0
  2. neural_network/plot.py +1 -0
cluster/plot.py CHANGED
@@ -9,6 +9,7 @@ matplotlib.use("Agg")
9
  sns.set()
10
 
11
  UPLOAD_FOLDER = os.getcwd() + "/plots"
 
12
 
13
 
14
  def plot(clusterer, X) -> None:
 
9
  sns.set()
10
 
11
  UPLOAD_FOLDER = os.getcwd() + "/plots"
12
+ os.makedirs(UPLOAD_FOLDER, exist_ok=True)
13
 
14
 
15
  def plot(clusterer, X) -> None:
neural_network/plot.py CHANGED
@@ -8,6 +8,7 @@ import os
8
  matplotlib.use("Agg")
9
 
10
  UPLOAD_FOLDER = os.getcwd() + "/plots"
 
11
 
12
 
13
  def plot(model) -> None:
 
8
  matplotlib.use("Agg")
9
 
10
  UPLOAD_FOLDER = os.getcwd() + "/plots"
11
+ os.makedirs(UPLOAD_FOLDER, exist_ok=True)
12
 
13
 
14
  def plot(model) -> None: