No application file

I am trying to host a gradio app.

The python code runs locally and launches the gradio app.

When I run ‘gradio deploy’ in the terminal, the files are uploaded to huggingface spaces, however, the spaces does not recognise my file.

It seems to suggest that there is no application file. please help.

Also received the “No application file” warning on my newly created space after an initial git commit/push to upload my app.

I was able to resolve by making a commit to in the browser.

  1. Navigate to “create the file directly in your browser” link just below the commit and push instructions on your space “home page.”

  2. Paste the contents of your already existing file

  3. Commit to main

This should pick up the file and trigger a build.