import gradio as gr
from pathlib import Path

def get_interface(container):
    """
    Reads markdown from README.md and renders it with Gradio.
    Args:
        container: Gradio container/context.
    """
    try:
        readme_path = Path(__file__).parent.parent / "README.md"
        markdown_content = readme_path.read_text(encoding="utf-8")
    except Exception as e:
        markdown_content = f"Error reading README.md: {e}"

    with container:
        gr.Markdown(markdown_content)
