DocUA commited on
Commit
42fb3a9
ยท
1 Parent(s): e8c7fad

Fix port configuration for Hugging Face Spaces

Browse files

- Changed default port from 7861 to 7860 for HF Spaces compatibility
- Port 7860 is the standard port used by Hugging Face Spaces

src/interface/simplified_gradio_app.py CHANGED
@@ -691,11 +691,12 @@ def main():
691
 
692
  # Get configuration
693
  server_name = os.getenv("GRADIO_SERVER_NAME", "0.0.0.0")
694
- server_port = int(os.getenv("GRADIO_SERVER_PORT", "7861")) # Different port
695
  share = os.getenv("GRADIO_SHARE", "false").lower() == "true"
696
 
697
  print(f"๐Ÿš€ Starting Simplified Medical Assistant Interface...")
698
  print(f"๐Ÿ“ Server: http://{server_name}:{server_port}")
 
699
 
700
  demo.launch(
701
  server_name=server_name,
 
691
 
692
  # Get configuration
693
  server_name = os.getenv("GRADIO_SERVER_NAME", "0.0.0.0")
694
+ server_port = int(os.getenv("GRADIO_SERVER_PORT", "7860")) # Use standard port for HF Spaces
695
  share = os.getenv("GRADIO_SHARE", "false").lower() == "true"
696
 
697
  print(f"๐Ÿš€ Starting Simplified Medical Assistant Interface...")
698
  print(f"๐Ÿ“ Server: http://{server_name}:{server_port}")
699
+ print(f"๐Ÿ“‹ Based on customer feedback: Or_4.txt")
700
 
701
  demo.launch(
702
  server_name=server_name,