ariG23498 HF Staff commited on
Commit
874be41
·
verified ·
1 Parent(s): 6072141

Upload PokeeAI_pokee_research_7b_0.py with huggingface_hub

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