Need help resolving import error in sample shared on Youtube

#2
by ganeshkamath89 - opened

I was following the Youtube course on Hugging face and tried to "Duplicate this space" and got the following error on Hugging Face.

Line:
from gradio import inputs

Error message:
ImportError: cannot import name 'inputs' from 'gradio'

Link to error Space:
https://huggingface.co/spaces/ganeshkamath89/GPT-2-story-gen

Youtube: time 27:03
https://www.youtube.com/watch?v=qNUjhpn4V5s&list=PLo2EIpI_JMQvWfQndUesu0nPBAtZ9gP1o&index=79

I have resolved the issue by re-writing the code with several changes:
https://huggingface.co/spaces/ganeshkamath89/GPT-2-story-gen

Sign up or log in to comment