VincentGOURBIN commited on
Commit
4c79bd7
·
verified ·
1 Parent(s): a3d4184

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -15,13 +15,12 @@ def main():
15
  """Main entry point for the Hugging Face Spaces app with native MCP server."""
16
 
17
  # Create the Gradio interface with native MCP support (Gradio 6 compatible)
18
- interface, theme, css = create_spaces_interface()
19
 
20
  # Launch with specific settings for HF Spaces and MCP server enabled (Gradio 6)
 
21
  port = int(os.environ.get("GRADIO_SERVER_PORT", 7860))
22
  interface.launch(
23
- theme=theme,
24
- css=css,
25
  server_name="0.0.0.0",
26
  server_port=port,
27
  share=False,
 
15
  """Main entry point for the Hugging Face Spaces app with native MCP server."""
16
 
17
  # Create the Gradio interface with native MCP support (Gradio 6 compatible)
18
+ interface = create_spaces_interface()
19
 
20
  # Launch with specific settings for HF Spaces and MCP server enabled (Gradio 6)
21
+ # Note: theme and css are configured in gr.Blocks() constructor, not in launch()
22
  port = int(os.environ.get("GRADIO_SERVER_PORT", 7860))
23
  interface.launch(
 
 
24
  server_name="0.0.0.0",
25
  server_port=port,
26
  share=False,