discord-bot-tutorial-code
discord-bot-tutorial-code copied to clipboard
Handle any `ModelError` raised by replicate
@zeke Have been using this code a for a custom bot actually. Super handy for testing models. I notice we don't handle any errors raised by the replicate package. This presently happens when we flag an NSFW output, but can happen for other reasons too.
It's unfortunately not nearly as clean - and tutorial code should probably be clean and simple. Any ideas?