Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
daily ping; readded vb; added argilla + data discussions channels; more distilabel pings
Browse files
app.py
CHANGED
@@ -23,6 +23,8 @@ SLACK_CHANNEL_ID_TEST = 'C07B4KNU5BQ'
|
|
23 |
# 1019883044724822016 = ask for help
|
24 |
ASK_FOR_HELP_CHANNEL_ID = 1019883044724822016
|
25 |
GRADIO_CHANNEL_ID = 1025174734427656283
|
|
|
|
|
26 |
|
27 |
|
28 |
TRIGGERS = {
|
@@ -31,6 +33,13 @@ TRIGGERS = {
|
|
31 |
("auto train",): "<@U01E3LEC2N7>", # abhishek
|
32 |
("competition",): "<@U01E3LEC2N7>", # abhishek
|
33 |
("competitions",): "<@U01E3LEC2N7>", # abhishek
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
("sentence-transformers",): "<@U04E4DNPWG7>", # tom aarsen
|
35 |
("sentence_transformers",): "<@U04E4DNPWG7>", # tom aarsen
|
36 |
("setfit",): "<@U04E4DNPWG7>", # tom aarsen
|
@@ -42,11 +51,15 @@ TRIGGERS = {
|
|
42 |
("docs",): "<@U02DATT4C5B>", # steven liu
|
43 |
("documentation",): "<@U02DATT4C5B>", # steven liu
|
44 |
("gradio",): "<@U02NMK75F1V>", # abubakar abid
|
|
|
45 |
("argilla",): "<@U076MF65WEM>", # sara han diaz lorenzo
|
46 |
("distilabel",): "<@U076MF65WEM>", # sara han diaz lorenzo
|
47 |
("argilla",): "<@U0765RENPNZ>", # sara han diaz lorenzo
|
48 |
("distilabel",): "<@U0765RENPNZ>", # sara han diaz lorenzo
|
49 |
("dataset", "feedback"): "<@U0768RCHCRY>", # ben burtenshaw
|
|
|
|
|
|
|
50 |
}
|
51 |
|
52 |
daily_pings = []
|
@@ -106,7 +119,7 @@ async def on_message(message):
|
|
106 |
@bot.event
|
107 |
async def on_thread_create(thread):
|
108 |
# (discord) must be the child thread of the CORRECT forum channel(s) (not just any thread, or any forum channel)
|
109 |
-
if isinstance(thread.parent, discord.ForumChannel) and thread.parent.id in {ASK_FOR_HELP_CHANNEL_ID, GRADIO_CHANNEL_ID}:
|
110 |
discord_thread_id = thread.id
|
111 |
slack_thread_ts = post_to_slack_create_thread(
|
112 |
SLACK_CHANNEL_ID,
|
@@ -182,7 +195,7 @@ async def post_to_slack(author, content, channel, url, slack_mention, trigger):
|
|
182 |
|
183 |
executor = ThreadPoolExecutor(max_workers=1)
|
184 |
scheduler = BackgroundScheduler(executors={'default': executor})
|
185 |
-
scheduler.add_job(send_daily_pings, trigger='interval',
|
186 |
scheduler.start()
|
187 |
|
188 |
|
|
|
23 |
# 1019883044724822016 = ask for help
|
24 |
ASK_FOR_HELP_CHANNEL_ID = 1019883044724822016
|
25 |
GRADIO_CHANNEL_ID = 1025174734427656283
|
26 |
+
ARGILLA_HELP_CHANNEL_ID = 1253640751481356330
|
27 |
+
DATA_DISCUSSIONS_CHANNEL_ID = 1217179426002047076
|
28 |
|
29 |
|
30 |
TRIGGERS = {
|
|
|
33 |
("auto train",): "<@U01E3LEC2N7>", # abhishek
|
34 |
("competition",): "<@U01E3LEC2N7>", # abhishek
|
35 |
("competitions",): "<@U01E3LEC2N7>", # abhishek
|
36 |
+
("text to speech",): "<@U039C2GANMV>", # VB
|
37 |
+
("tts",): "<@U039C2GANMV>", # VB
|
38 |
+
("asr",): "<@U039C2GANMV>", # VB
|
39 |
+
("musicgen",): "<@U039C2GANMV>", # VB
|
40 |
+
("whisper",): "<@U039C2GANMV>", # VB
|
41 |
+
("speech recognition",): "<@U039C2GANMV>", # VB
|
42 |
+
("bark",): "<@U039C2GANMV>", # VB
|
43 |
("sentence-transformers",): "<@U04E4DNPWG7>", # tom aarsen
|
44 |
("sentence_transformers",): "<@U04E4DNPWG7>", # tom aarsen
|
45 |
("setfit",): "<@U04E4DNPWG7>", # tom aarsen
|
|
|
51 |
("docs",): "<@U02DATT4C5B>", # steven liu
|
52 |
("documentation",): "<@U02DATT4C5B>", # steven liu
|
53 |
("gradio",): "<@U02NMK75F1V>", # abubakar abid
|
54 |
+
("gradio",): "<@U04FLGQ26PQ>", # yuvraj sharma
|
55 |
("argilla",): "<@U076MF65WEM>", # sara han diaz lorenzo
|
56 |
("distilabel",): "<@U076MF65WEM>", # sara han diaz lorenzo
|
57 |
("argilla",): "<@U0765RENPNZ>", # sara han diaz lorenzo
|
58 |
("distilabel",): "<@U0765RENPNZ>", # sara han diaz lorenzo
|
59 |
("dataset", "feedback"): "<@U0768RCHCRY>", # ben burtenshaw
|
60 |
+
("distilabel",): "<@U0768QEN0LA>", # Gabriel Martín Blázquez
|
61 |
+
("distilabel",): "<@U076271MBUN>", # Agustín Piqueres
|
62 |
+
|
63 |
}
|
64 |
|
65 |
daily_pings = []
|
|
|
119 |
@bot.event
|
120 |
async def on_thread_create(thread):
|
121 |
# (discord) must be the child thread of the CORRECT forum channel(s) (not just any thread, or any forum channel)
|
122 |
+
if isinstance(thread.parent, discord.ForumChannel) and thread.parent.id in {ASK_FOR_HELP_CHANNEL_ID, GRADIO_CHANNEL_ID, ARGILLA_HELP_CHANNEL_ID, DATA_DISCUSSIONS_CHANNEL_ID}:
|
123 |
discord_thread_id = thread.id
|
124 |
slack_thread_ts = post_to_slack_create_thread(
|
125 |
SLACK_CHANNEL_ID,
|
|
|
195 |
|
196 |
executor = ThreadPoolExecutor(max_workers=1)
|
197 |
scheduler = BackgroundScheduler(executors={'default': executor})
|
198 |
+
scheduler.add_job(send_daily_pings, trigger='interval', days=1)
|
199 |
scheduler.start()
|
200 |
|
201 |
|