import gradio as gr syntax = { "link": "[I'm an inline-style link](https://www.google.com)", "image": "![alt text](image_path)", "header": """## H2 ### H3 #### H4 ##### H5 ###### H6""" } def predict(choice): return syntax[choice] article = """ # Adding Markdown and Other Text related_spaces: https://huggingface.co/spaces/ThomasSimonini/Chat-with-Gandalf-GPT-J6B, https://huggingface.co/spaces/kingabzpro/Rick_and_Morty_Bot, https://huggingface.co/spaces/nateraw/cryptopunks-generator tags: MARKDOWN, DESCRIPTION, ARTICLE ## Introduction When an interface is shared, it is usually accompanied with some form of explanatory text, links or images. This guide will go over how to easily add these on gradio. For example, take a look at this fun chatbot interface below. It has a title, description, image as well as links in the bottom. ## The parameters in `Interface` There are three parameters in `Interface` where text can go: * `Title`: which accepts text and can displays it at the very top of interface * `Description`: which accepts text, markdown or HTML and places it right under the title. * `Article`: which is also accepts text, markdown or HTML but places it below the interface. ![annotated](website/src/assets/img/guides/adding_markdown_and_other_text/annotated.png) ## Code example Here's all the text-related code required to recreate the interface above. ```python import gradio as gr title = \"Talk To Me Morty\" description = \"\"\"