Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Synced repo using 'sync_with_huggingface' Github Action
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ XP_PER_MESSAGE = 10 # 100k messages = 1M exp = lvl 100
|
|
20 |
data_file_path = '/data/xp_data.json'
|
21 |
xp_data = {}
|
22 |
""""""
|
23 |
-
|
24 |
API_URL = "https://api-inference.huggingface.co/models/mariagrandury/roberta-base-finetuned-sms-spam-detection"
|
25 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
26 |
headers = {"Authorization": f"Bearer {HF_TOKEN}"}
|
@@ -66,8 +66,8 @@ async def on_message(message):
|
|
66 |
try:
|
67 |
if message.author != bot.user:
|
68 |
|
69 |
-
output = query({"inputs": f"{message.content}",})
|
70 |
-
print(output)
|
71 |
|
72 |
"""AWAIT LEVEL ALGORITHM OR SOMETHING (MULTIPLE FILES?)"""
|
73 |
author_id = str(message.author.id) # dictionary pairs (ID -> TOTAL XP)
|
|
|
20 |
data_file_path = '/data/xp_data.json'
|
21 |
xp_data = {}
|
22 |
""""""
|
23 |
+
|
24 |
API_URL = "https://api-inference.huggingface.co/models/mariagrandury/roberta-base-finetuned-sms-spam-detection"
|
25 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
26 |
headers = {"Authorization": f"Bearer {HF_TOKEN}"}
|
|
|
66 |
try:
|
67 |
if message.author != bot.user:
|
68 |
|
69 |
+
#output = query({"inputs": f"{message.content}",})
|
70 |
+
#print(output)
|
71 |
|
72 |
"""AWAIT LEVEL ALGORITHM OR SOMETHING (MULTIPLE FILES?)"""
|
73 |
author_id = str(message.author.id) # dictionary pairs (ID -> TOTAL XP)
|