I highly recommend you finish till the end huggingface interface (API endpoint). Gradio says it ] works for 72 hours it did not for me. Huggingface actually works even after a month. A great place to show your work.
You need to go into your Space and find the “App” tab, next to it is a “File” tab:
click on “File”, then click “Add file”.
An editor opens up.
enter file name as “requirements.txt”
in the body, type “fastai”
then complete by clicking “create file”
Farai, I could be wrong, but check that the fastai module is installed.
I was running the code locally and had to therefore install the fastai module locally.
Go to the environment that you’ve created and use pip install -Uqq fastai