JarrettYe commited on
Commit
6f5abb0
1 Parent(s): 007ad5c

replace [ & ]

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -83,6 +83,7 @@ def interface_func(weights: str, learning_time: int, learn_span: int, deck_size:
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
88
 
 
83
  progress=gr.Progress(track_tqdm=True)):
84
  plt.close('all')
85
  np.random.seed(42)
86
+ weights = weights.replace('[', '').replace(']', '')
87
  w = list(map(lambda x: float(x.strip()), weights.split(',')))
88
  max_cost_perday = learning_time * 60
89