Spaces:
Running
Running
Andrea Maldonado
commited on
Commit
·
a5e0b3a
1
Parent(s):
f744036
Automatically updates the experiment_config.json file even without pressing the save button
Browse files- utils/config_fabric.py +2 -2
utils/config_fabric.py
CHANGED
@@ -270,11 +270,11 @@ if __name__ == '__main__':
|
|
270 |
save_labels = ["Save configuration file"]
|
271 |
#create_button, create_run_button = multi_button(save_labels)
|
272 |
create_button = multi_button(save_labels)
|
273 |
-
|
274 |
-
if create_button: # or create_run_button:
|
275 |
with open(output_path, "w") as f:
|
276 |
f.write(config_file)
|
277 |
st.write("Saved configuration in ", output_path, ". Run command:")
|
|
|
278 |
#if create_run_button:
|
279 |
if True:
|
280 |
var = f"python -W ignore main.py -a {output_path}"
|
|
|
270 |
save_labels = ["Save configuration file"]
|
271 |
#create_button, create_run_button = multi_button(save_labels)
|
272 |
create_button = multi_button(save_labels)
|
273 |
+
if create_button[0]: # or create_run_button:
|
|
|
274 |
with open(output_path, "w") as f:
|
275 |
f.write(config_file)
|
276 |
st.write("Saved configuration in ", output_path, ". Run command:")
|
277 |
+
create_button[0] = False
|
278 |
#if create_run_button:
|
279 |
if True:
|
280 |
var = f"python -W ignore main.py -a {output_path}"
|