discord-bot-tutorial-code icon indicating copy to clipboard operation
discord-bot-tutorial-code copied to clipboard

Handle any `ModelError` raised by replicate

Open afiaka87 opened this issue 3 years ago • 0 comments

@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?

afiaka87 avatar Sep 19 '22 09:09 afiaka87