ariG23498 HF Staff commited on
Commit
93b32d3
·
verified ·
1 Parent(s): e92c739

Upload Qwen_Qwen3-Coder-30B-A3B-Instruct_1.py with huggingface_hub

Browse files
Qwen_Qwen3-Coder-30B-A3B-Instruct_1.py CHANGED
@@ -6,6 +6,7 @@
6
  # "transformers",
7
  # "accelerate",
8
  # "peft",
 
9
  # ]
10
  # ///
11
 
@@ -34,6 +35,14 @@ except Exception as e:
34
  with open('Qwen_Qwen3-Coder-30B-A3B-Instruct_1.txt', 'w', encoding='utf-8') as f:
35
  import traceback
36
  traceback.print_exc(file=f)
 
 
 
 
 
 
 
 
37
  finally:
38
  from huggingface_hub import upload_file
39
  upload_file(
 
6
  # "transformers",
7
  # "accelerate",
8
  # "peft",
9
+ # "slack-sdk",
10
  # ]
11
  # ///
12
 
 
35
  with open('Qwen_Qwen3-Coder-30B-A3B-Instruct_1.txt', 'w', encoding='utf-8') as f:
36
  import traceback
37
  traceback.print_exc(file=f)
38
+
39
+ from slack_sdk import WebClient
40
+ client = WebClient(token=os.environ["SLACK_TOKEN"])
41
+ client.chat_postMessage(
42
+ channel=#exp-slack-alerts,
43
+ text='Problem in <https://huggingface.co/datasets/model-metadata/code_execution_files/blob/main/Qwen_Qwen3-Coder-30B-A3B-Instruct_1.txt|Qwen_Qwen3-Coder-30B-A3B-Instruct_1.txt>',
44
+ thread_ts=parent_message_ts,
45
+ )
46
  finally:
47
  from huggingface_hub import upload_file
48
  upload_file(