ariG23498 HF Staff commited on
Commit
f437466
·
verified ·
1 Parent(s): f12fdbf

Upload meituan-longcat_LongCat-Video_0.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. meituan-longcat_LongCat-Video_0.py +21 -9
meituan-longcat_LongCat-Video_0.py CHANGED
@@ -21,17 +21,29 @@ try:
21
  with open('meituan-longcat_LongCat-Video_0.txt', 'w', encoding='utf-8') as f:
22
  f.write('Everything was good in meituan-longcat_LongCat-Video_0.txt')
23
  except Exception as e:
24
- with open('meituan-longcat_LongCat-Video_0.txt', 'w', encoding='utf-8') as f:
 
 
 
 
 
 
 
 
25
  import traceback
26
- traceback.print_exc(file=f)
 
 
 
27
 
28
- import os
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/meituan-longcat_LongCat-Video_0.txt|meituan-longcat_LongCat-Video_0.txt>',
34
- )
 
35
  finally:
36
  from huggingface_hub import upload_file
37
  upload_file(
 
21
  with open('meituan-longcat_LongCat-Video_0.txt', 'w', encoding='utf-8') as f:
22
  f.write('Everything was good in meituan-longcat_LongCat-Video_0.txt')
23
  except Exception as e:
24
+ import os
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/meituan-longcat_LongCat-Video_0.txt|meituan-longcat_LongCat-Video_0.txt>',
30
+ )
31
+
32
+ with open('meituan-longcat_LongCat-Video_0.txt', 'a', encoding='utf-8') as f:
33
  import traceback
34
+ f.write('```CODE:
35
+ # integration status unknown.
36
+
37
+ # Please clone model and use locally.
38
 
39
+ # Also feel free to open a Pull request
40
+ # for integration of the huggingface model hub
41
+ # into the corresponding library =)
42
+ ```
43
+ ERROR:
44
+ ')
45
+ traceback.print_exc(file=f)
46
+
47
  finally:
48
  from huggingface_hub import upload_file
49
  upload_file(