JarrettYe commited on
Commit
007ad5c
1 Parent(s): 983012f

close plot

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -81,6 +81,7 @@ def simulate(w, request_retention=0.9, deck_size=10000, learn_span=100, max_cost
81
 
82
  def interface_func(weights: str, learning_time: int, learn_span: int, deck_size: int, max_ivl: int, recall_cost: int, forget_cost: int, learn_cost: int,
83
  progress=gr.Progress(track_tqdm=True)):
 
84
  np.random.seed(42)
85
  w = list(map(lambda x: float(x.strip()), weights.split(',')))
86
  max_cost_perday = learning_time * 60
 
81
 
82
  def interface_func(weights: str, learning_time: int, learn_span: int, deck_size: int, max_ivl: int, recall_cost: int, forget_cost: int, learn_cost: int,
83
  progress=gr.Progress(track_tqdm=True)):
84
+ plt.close('all')
85
  np.random.seed(42)
86
  w = list(map(lambda x: float(x.strip()), weights.split(',')))
87
  max_cost_perday = learning_time * 60