lunarflu HF staff commited on
Commit
270d6f4
1 Parent(s): b8d5ca1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
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