hysts's picture
hysts HF Staff
Update
2ea5eb3
raw
history blame contribute delete
366 Bytes
#!/usr/bin/env python
import gradio as gr
import pandas as pd
df = pd.DataFrame(
data={
"a": ["a", "b"],
"b": [
"""
- Item 1
- Item 2
- Item 3
""",
"c",
],
}
)
with gr.Blocks() as demo:
gr.Dataframe(value=df, datatype="markdown", line_breaks=False)
if __name__ == "__main__":
demo.queue().launch()