fix: Fix the issue of invalid port settings (#1351)

This commit is contained in:
2024-03-29 17:25:42 +08:00
committed by GitHub
parent a272d1b8f3
commit 4238a670bf
3 changed files with 6 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ class Config(metaclass=Singleton):
# Gradio language version: en, zh
self.LANGUAGE = os.getenv("LANGUAGE", "en")
self.WEB_SERVER_PORT = int(os.getenv("WEB_SERVER_PORT", 7860))
self.WEB_SERVER_PORT = int(os.getenv("WEB_SERVER_PORT", 5000))
self.debug_mode = False
self.skip_reprompt = False