HuggingFace Error

Hey all,

I recently deployed a model using FastAI and Gradio that worked for a good week, but am now getting a runtime error. I never changed the code from the time it was functional. My Python script is attached, as well as the error.

I’m guessing it has to do with how the dictionary is returned, but this is written exactly how Jeremy did it in the lecture.


It’s actually due to torch 1.13 :slight_smile: TypeError: Exception occured in `ProgressCallback` when calling event `after_batch`: unsupported format string passed to TensorBase.__format__ - #4 by farkmu45 - Beginners - Hugging Face Forums for now pin your torch version until a new version of fastai is released with a fix

3 Likes

Pinning fixed the issue. Thank you!