DataFrameTest / app.py
Krebzonide's picture
Update app.py
5d7d65b verified
raw
history blame
300 Bytes
import gradio as gr
def pri(df):
print(len(df))
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(pri, df)
demo.launch()