ariG23498 HF Staff commited on
Commit
fd5bf0d
·
verified ·
1 Parent(s): 8913573

Upload LiquidAI_LFM2-VL-3B_1.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. LiquidAI_LFM2-VL-3B_1.py +9 -0
LiquidAI_LFM2-VL-3B_1.py CHANGED
@@ -6,6 +6,7 @@
6
  # "transformers",
7
  # "accelerate",
8
  # "peft",
 
9
  # ]
10
  # ///
11
 
@@ -40,6 +41,14 @@ except Exception as e:
40
  with open('LiquidAI_LFM2-VL-3B_1.txt', 'w', encoding='utf-8') as f:
41
  import traceback
42
  traceback.print_exc(file=f)
 
 
 
 
 
 
 
 
43
  finally:
44
  from huggingface_hub import upload_file
45
  upload_file(
 
6
  # "transformers",
7
  # "accelerate",
8
  # "peft",
9
+ # "slack-sdk",
10
  # ]
11
  # ///
12
 
 
41
  with open('LiquidAI_LFM2-VL-3B_1.txt', 'w', encoding='utf-8') as f:
42
  import traceback
43
  traceback.print_exc(file=f)
44
+
45
+ from slack_sdk import WebClient
46
+ client = WebClient(token=os.environ["SLACK_TOKEN"])
47
+ client.chat_postMessage(
48
+ channel=#exp-slack-alerts,
49
+ text='Problem in <https://huggingface.co/datasets/model-metadata/code_execution_files/blob/main/LiquidAI_LFM2-VL-3B_1.txt|LiquidAI_LFM2-VL-3B_1.txt>',
50
+ thread_ts=parent_message_ts,
51
+ )
52
  finally:
53
  from huggingface_hub import upload_file
54
  upload_file(