DataFrameTest / app.py
Krebzonide's picture
Update app.py
7f6d399 verified
raw
history blame
269 Bytes
import gradio as gr
with gr.Blocks() as demo:
df = gr.Dataframe(
type="array",
headers=["name"],
datatype=["str"],
row_count=(4, "fixed"),
col_count=(1, "fixed"))
btn = gr.Button()
btn.click(print, df)
demo.launch()