main
Multi-agent Gradio interface using the improved interface architecture.
This provides a configurable web interface that supports MCP server connections and multi-agent interactions with a better UI design.
create_gradio_app(config_path)
Create a Gradio application from a configuration file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config_path
|
str
|
Path to the configuration file |
required |
Returns:
| Type | Description |
|---|---|
Blocks
|
Gradio Blocks interface |
Source code in src/mada/interfaces/gradio/main.py
gradio_entrypoint(port, share, config_file)
Entrypoint for the Gradio mode in MADA.
This function loads in a configuration from the user, overrides settings given via the CLI, and starts MADA using Gradio.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
port
|
int | None
|
Port for Gradio server. Overrides 'interface.port' setting in the configuration file. |
required |
share
|
bool
|
If True, enable Gradio sharing. Overrides 'interface.share' setting in the configuration file. |
required |
config_file
|
str
|
Path to MADA configuration file. |
required |
Source code in src/mada/interfaces/gradio/main.py
main(port, share, config_file)
Run MADA in Gradio mode.
CONFIG_FILE is the path to the MADA configuration file.
Source code in src/mada/interfaces/gradio/main.py
run_gradio(config)
Launch the Gradio web interface using the provided configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
AppConfig
|
The full application configuration object |
required |
Source code in src/mada/interfaces/gradio/main.py
setup_logging()
Configure logging for the Gradio interface.