Error when pushing to Hugging Face spaces

I pushed my app.py file along with all the rest of the files for the ifnerence application to work, however i’m currently getting the following error in my application container logs:

Traceback (most recent call last):
File “/home/user/app/app.py”, line 25, in
image = gr.inputs.Image(shape=(192, 192))
AttributeError: module ‘gradio’ has no attribute ‘inputs’

in case you want to check out some other rest of the code for whatever reason, here’s the link to my HF repo: CupClassifier - a Hugging Face Space by Shumbabala

hey! I had the same problem haha, check out this thread: AttributeError: module 'gradio' has no attribute 'inputs' · Issue #605 · tloen/alpaca-lora · GitHub
Either you can downgrade your gradio version or use the new non-deprecated functions (I did the latter). Have fun!