avfranco's picture
ea4all-gradio-agents-mcp-hackathon-tools-refactoring-overview
978e4a9
raw
history blame contribute delete
715 Bytes
from ea4all import ea4all_mcp as e4m
import os
def main() -> None:
#Launch UI
try:
e4m.ea4all_mcp.launch(
server_name=os.getenv("GRADIO_SERVER_NAME","0.0.0.0"),
server_port=None,
debug=os.getenv("GRADIO_DEBUG", "True").lower() in ("true", "1", "yes"),
ssr_mode=False,
mcp_server=True,
inbrowser=os.getenv("GRADIO_INBROWSER", "True").lower() in ("true", "1", "yes"),
#auth=("ea4all", "ea4a@@"),
auth_message="Please login with your credentials. Under development, will be public soon.",
)
except Exception as e:
print(f"Error loading: {e}")
if __name__ == "__main__":
main()