No application file

Hello,
I am trying to host a gradio app. https://huggingface.co/spaces/chandrakalagowda/texttoimg

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 app.py 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 app.py in the browser.

  1. Navigate to “create the app.py 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 app.py file

  3. Commit to main

This should pick up the app.py file and trigger a build.