import gradio as gr from pathlib import Path from huggingface_hub import ModelCard modelcard = ModelCard.load(Path(__file__).parent / "README.md") with gr.Blocks() as demo: gr.Markdown(modelcard.text) demo.launch()