Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Synced repo using 'sync_with_huggingface' Github Action
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ async def on_message(message):
|
|
43 |
"""Backup"""
|
44 |
number_of_messages = number_of_messages + 1
|
45 |
message_link = f"[#{message.channel.name}]({message.jump_url})"
|
46 |
-
job = test.submit(
|
47 |
while not job.done():
|
48 |
await asyncio.sleep(0.2)
|
49 |
#await bot.log_channel.send( later, after testing
|
|
|
43 |
"""Backup"""
|
44 |
number_of_messages = number_of_messages + 1
|
45 |
message_link = f"[#{message.channel.name}]({message.jump_url})"
|
46 |
+
job = test.submit(message.content, api_name="/predict")
|
47 |
while not job.done():
|
48 |
await asyncio.sleep(0.2)
|
49 |
#await bot.log_channel.send( later, after testing
|