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