Upload datalab-to_chandra_1.py with huggingface_hub
Browse files- datalab-to_chandra_1.py +2 -3
datalab-to_chandra_1.py
CHANGED
|
@@ -24,11 +24,10 @@ except Exception as e:
|
|
| 24 |
traceback.print_exc(file=f)
|
| 25 |
|
| 26 |
from slack_sdk import WebClient
|
| 27 |
-
client = WebClient(token=os.environ[
|
| 28 |
client.chat_postMessage(
|
| 29 |
-
channel
|
| 30 |
text='Problem in <https://huggingface.co/datasets/model-metadata/code_execution_files/blob/main/datalab-to_chandra_1.txt|datalab-to_chandra_1.txt>',
|
| 31 |
-
thread_ts=parent_message_ts,
|
| 32 |
)
|
| 33 |
finally:
|
| 34 |
from huggingface_hub import upload_file
|
|
|
|
| 24 |
traceback.print_exc(file=f)
|
| 25 |
|
| 26 |
from slack_sdk import WebClient
|
| 27 |
+
client = WebClient(token=os.environ['SLACK_TOKEN'])
|
| 28 |
client.chat_postMessage(
|
| 29 |
+
channel='#exp-slack-alerts',
|
| 30 |
text='Problem in <https://huggingface.co/datasets/model-metadata/code_execution_files/blob/main/datalab-to_chandra_1.txt|datalab-to_chandra_1.txt>',
|
|
|
|
| 31 |
)
|
| 32 |
finally:
|
| 33 |
from huggingface_hub import upload_file
|