replace [ & ]
Browse files
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 |
|