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!

I also replaced:
image = gr.inputs.Image(shape=(192, 192))
label = gr.outputs.Label()
with:
image = gr.Image()
label = gr.Label()

without needing to down gradio

This post has more info on it: Do not use gradio.inputs and gradio.outputs! · Issue #1835 · gradio-app/gradio · GitHub
but essentially the API was deprecated. After a bit of research I was able to get it to work.
Here is my code for reference: radatia/minimal at main