Seeing blank page when clicking `use via API` link

I created a weed classifier and am trying to see its API by clicking use via API link but I am getting a blank page. The log has an error:

  File "/home/user/.local/lib/python3.8/site-packages/gradio/", line 499, in get_api_info
    info = component["api_info"]["serialized_input"]
KeyError: 'serialized_input'

I found only one report of this error on the web and it talks something about huggingspace infrastructure issue.

Any ideas how to solve it?

Hi @dhits

Can you try upgrading versions to 3.29.0?

Thank you very much @freddyaboulton!
It took me a while to figure out where do I upgrade the gradio version but eventually I did it!
Changing sdk_version in the file to 3.29.0 did not help but changing it to 3.39.0 did!