Update app.py
Browse files
app.py
CHANGED
@@ -503,12 +503,15 @@ async def on_reaction_add(reaction, user): # ctx = await bot.get_context(reac
|
|
503 |
await dfif2(index, stage_1_result_path, thread, dfif_command_message_id)
|
504 |
|
505 |
except Exception as e:
|
506 |
-
print(f"Error: {e}")
|
|
|
507 |
emoji_guild = reaction.message.guild
|
508 |
failure_emoji_id = 1098628957521313892
|
509 |
failure_emoji = discord.utils.get(emoji_guild.emojis, id=failure_emoji_id)
|
510 |
await reaction.message.add_reaction(failure_emoji)
|
511 |
-
await reaction.message.channel.send(f"Error during reactions.")
|
|
|
|
|
512 |
#----------------------------------------------------------------------------------------------------------------------------
|
513 |
|
514 |
def run_bot():
|
@@ -522,5 +525,4 @@ def greet(name):
|
|
522 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
523 |
#demo.queue(concurrency_count=10)
|
524 |
demo.queue(concurrency_count=10, max_size=2)
|
525 |
-
breaking
|
526 |
demo.launch()
|
|
|
503 |
await dfif2(index, stage_1_result_path, thread, dfif_command_message_id)
|
504 |
|
505 |
except Exception as e:
|
506 |
+
print(f"Error: {e} testing emoji behavior with reacts")
|
507 |
+
'''
|
508 |
emoji_guild = reaction.message.guild
|
509 |
failure_emoji_id = 1098628957521313892
|
510 |
failure_emoji = discord.utils.get(emoji_guild.emojis, id=failure_emoji_id)
|
511 |
await reaction.message.add_reaction(failure_emoji)
|
512 |
+
await reaction.message.channel.send(f"Error during reactions.")
|
513 |
+
'''
|
514 |
+
|
515 |
#----------------------------------------------------------------------------------------------------------------------------
|
516 |
|
517 |
def run_bot():
|
|
|
525 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
526 |
#demo.queue(concurrency_count=10)
|
527 |
demo.queue(concurrency_count=10, max_size=2)
|
|
|
528 |
demo.launch()
|