import gradio as gr import modelscope_gradio_components as mgr with gr.Blocks() as demo: mgr.Markdown(f""" 普通调用: ```json {{"text": "风和日丽", "resolution": "1024*1024"}} ``` 使用 ::accordion-title 标记支持 markdown 语法: ::accordion-title[调用 `tool`] ```json {{"text": "风和日丽", "resolution": "1024*1024"}} ``` """) if __name__ == "__main__": demo.queue().launch()