Spaces:
Running
on
Zero
Running
on
Zero
Upload app.py with huggingface_hub
Browse files
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
|
| 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,
|