ariG23498 HF Staff commited on
Commit
5d1062f
·
verified ·
1 Parent(s): 3d090a8

Upload Kijai_WanVideo_comfy_fp8_scaled_0.py with huggingface_hub

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