Spaces:
Sleeping
Sleeping
fix: appending instead of updating
Browse files
app.py
CHANGED
|
@@ -123,7 +123,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 123 |
response.raise_for_status()
|
| 124 |
result_data = response.json()
|
| 125 |
log_file_dict = copy.deepcopy(results_log)
|
| 126 |
-
log_file_dict.
|
| 127 |
|
| 128 |
with open("results_log.json", "w") as results_session_file:
|
| 129 |
json.dump(log_file_dict, results_session_file)
|
|
|
|
| 123 |
response.raise_for_status()
|
| 124 |
result_data = response.json()
|
| 125 |
log_file_dict = copy.deepcopy(results_log)
|
| 126 |
+
log_file_dict.append({'result_data': result_data})
|
| 127 |
|
| 128 |
with open("results_log.json", "w") as results_session_file:
|
| 129 |
json.dump(log_file_dict, results_session_file)
|