Help with "OSError: Cannot find empty port in range: 7860-7860"
I am trying to deploy an app using Gradio SDK but I keep getting the following error: OSError: Cannot find empty port in range: 7860-7860. You can specify a different port by setting the GRADIO_SERVER_PORT environment variable or passing theserver_portparameter tolaunch().There is a similar post that covered the same issue:All ports in use - Beginners - Hugging Face Forums. But it was not helpful because the OP chose the wrong SDK. I deleted and created a new space to double check that I selected the Gradio SDK and I am still facing the same issue.Other things I have tried:Restarting spaceFactory rebuildTried other ports (7861, 7862, etc.)None have worked and I am at a loss on how to resolve this.
2024-10-11T14:14:00Z
Hello, I am also facing a similar issue. Do you have a thorough solution?
2024-10-11T14:33:12Z
huggingface.coSpaces Configuration ReferenceWe’re on a journey to advance and democratize artificial intelligence through open source and open science.app_port:intPort on which your application is running. Used only ifsdkisdocker. Default port is7860.Can’t we do something with this?
2024-11-13T21:51:14Z
Make sure to change the sdk in your README to gradio (and the required sdk_version).