AiNewsV2 / ui /display.py
Phoenix21's picture
Modular code
7516245
raw
history blame contribute delete
462 Bytes
from IPython.display import Image, display, Markdown
def display_workflow(workflow):
"""
Display a workflow graph using IPython
Args:
workflow: The workflow to display
"""
display(Image(workflow.get_graph().draw_mermaid_png()))
def display_blog(blog_content):
"""
Display a blog as markdown using IPython
Args:
blog_content (str): Markdown content to display
"""
display(Markdown(blog_content))