|
16 | 16 |
|
17 | 17 | from sdgym.result_explorer.result_explorer import ResultsExplorer |
18 | 18 | from sdgym.result_writer import LocalResultsWriter |
19 | | -from sdgym.run_benchmark.utils import OUTPUT_DESTINATION_AWS, _parse_args, get_df_to_plot |
| 19 | +from sdgym.run_benchmark.utils import ( |
| 20 | + MODALITY_TO_GDRIVE_LINK, |
| 21 | + OUTPUT_DESTINATION_AWS, |
| 22 | + _extract_google_file_id, |
| 23 | + _parse_args, |
| 24 | + get_df_to_plot, |
| 25 | +) |
20 | 26 | from sdgym.s3 import S3_REGION, parse_s3_path |
21 | 27 |
|
22 | 28 | LOGGER = logging.getLogger(__name__) |
|
29 | 35 | 'CopulaGAN': 'top center', |
30 | 36 | 'RealTabFormer': 'bottom center', |
31 | 37 | } |
32 | | -MODALITY_TO_FILE_ID = { |
33 | | - 'single_table': '1W3tsGOOtbtTw3g0EVE0irLgY_TN_cy2W4ONiZQ57OPo', |
34 | | - 'multi_table': '1R13RktVvKnxRecYIge07OBpbX1vbEkE2D1_2idNAKSY', |
35 | | -} |
36 | 38 | RESULT_FILENAME = 'SDGym Monthly Run.xlsx' |
37 | 39 |
|
38 | 40 |
|
@@ -171,7 +173,7 @@ def upload_results( |
171 | 173 | f'{run_date}_plot_data': df_to_plot, |
172 | 174 | } |
173 | 175 | local_results_writer.write_xlsx(datas, local_file_path) |
174 | | - upload_to_drive((local_file_path), MODALITY_TO_FILE_ID[modality]) |
| 176 | + upload_to_drive((local_file_path), _extract_google_file_id(MODALITY_TO_GDRIVE_LINK[modality])) |
175 | 177 | s3_client.upload_file(local_file_path, bucket, s3_key) |
176 | 178 | write_uploaded_marker(s3_client, bucket, prefix, folder_name, modality=modality) |
177 | 179 | if temp_dir: |
|
0 commit comments