ariG23498 HF Staff commited on
Commit
479b072
·
verified ·
1 Parent(s): 2ccaecf

Upload RUC-DataLab_DeepAnalyze-8B_0.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. RUC-DataLab_DeepAnalyze-8B_0.py +9 -0
RUC-DataLab_DeepAnalyze-8B_0.py CHANGED
@@ -6,6 +6,7 @@
6
  # "transformers",
7
  # "accelerate",
8
  # "peft",
 
9
  # ]
10
  # ///
11
 
@@ -20,6 +21,14 @@ except Exception as e:
20
  with open('RUC-DataLab_DeepAnalyze-8B_0.txt', 'w', encoding='utf-8') as f:
21
  import traceback
22
  traceback.print_exc(file=f)
 
 
 
 
 
 
 
 
23
  finally:
24
  from huggingface_hub import upload_file
25
  upload_file(
 
6
  # "transformers",
7
  # "accelerate",
8
  # "peft",
9
+ # "slack-sdk",
10
  # ]
11
  # ///
12
 
 
21
  with open('RUC-DataLab_DeepAnalyze-8B_0.txt', 'w', encoding='utf-8') as f:
22
  import traceback
23
  traceback.print_exc(file=f)
24
+
25
+ from slack_sdk import WebClient
26
+ client = WebClient(token=os.environ["SLACK_TOKEN"])
27
+ client.chat_postMessage(
28
+ channel=#exp-slack-alerts,
29
+ text='Problem in <https://huggingface.co/datasets/model-metadata/code_execution_files/blob/main/RUC-DataLab_DeepAnalyze-8B_0.txt|RUC-DataLab_DeepAnalyze-8B_0.txt>',
30
+ thread_ts=parent_message_ts,
31
+ )
32
  finally:
33
  from huggingface_hub import upload_file
34
  upload_file(