lunarflu HF staff commited on
Commit
6971a6a
1 Parent(s): 1bbb1cd

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- #client = Client("https://lunarflu-bert-test.hf.space/--replicas/kjf2p/")
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)