Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ XP_PER_MESSAGE = 10 # 100k messages = 1M exp = lvl 100
|
|
19 |
data_file_path = '/data/xp_data.json'
|
20 |
xp_data = {}
|
21 |
""""""
|
22 |
-
client = Client("https://lunarflu-bert-test.hf.space/--replicas/kjf2p/")
|
23 |
|
24 |
@bot.event
|
25 |
async def on_ready():
|
@@ -60,10 +60,6 @@ def load_xp_data():
|
|
60 |
async def on_message(message):
|
61 |
try:
|
62 |
if message.author != bot.user:
|
63 |
-
result = client.predict(message.content, api_name="/predict")
|
64 |
-
print(result)
|
65 |
-
|
66 |
-
|
67 |
"""AWAIT LEVEL ALGORITHM OR SOMETHING (MULTIPLE FILES?)"""
|
68 |
author_id = str(message.author.id) # dictionary pairs (ID -> TOTAL XP)
|
69 |
xp_data.setdefault(author_id, 0) # default if it doesn't already exist
|
|
|
19 |
data_file_path = '/data/xp_data.json'
|
20 |
xp_data = {}
|
21 |
""""""
|
22 |
+
#client = Client("https://lunarflu-bert-test.hf.space/--replicas/kjf2p/")
|
23 |
|
24 |
@bot.event
|
25 |
async def on_ready():
|
|
|
60 |
async def on_message(message):
|
61 |
try:
|
62 |
if message.author != bot.user:
|
|
|
|
|
|
|
|
|
63 |
"""AWAIT LEVEL ALGORITHM OR SOMETHING (MULTIPLE FILES?)"""
|
64 |
author_id = str(message.author.id) # dictionary pairs (ID -> TOTAL XP)
|
65 |
xp_data.setdefault(author_id, 0) # default if it doesn't already exist
|