import gradio as gr from pathlib import Path README_PATH = Path(__file__).parent / "README.md" with gr.Blocks() as demo: gr.Markdown(README_PATH.read_text().split("---")[-1].strip()) demo.launch()