hysts's picture
hysts HF Staff
Add files
8353887
raw
history blame contribute delete
273 Bytes
import gradio as gr
import pandas as pd
data = [["aaa", "aab", "aac"], ["abb", "abc", "abd"], ["bbb", "bbc", "bbd"]]
df = pd.DataFrame(data, columns=["a", "b", "c"])
with gr.Blocks() as demo:
gr.Dataframe(value=df, column_widths=["60%", "20%", "20%"])
demo.launch()