Gradio app breaks after 20 seconds

I want to make a clip-guided diffusion app and I found one that is very similar to what I want, but I want to incorporate l1-ratio into the loss so I made my own. To get it working first, I just copied all of their code exactly and built it and ran it, but after 25 seconds it just breaks. All gitattributes, requirements, and app.py are all exactly the same as a working app on huggingface but for some reason mine doesn’t work. Not sure what to do