DataFrameTest / app.py
Krebzonide's picture
Update app.py
3abc7f1 verified
raw
history blame
333 Bytes
import gradio as gr
def pri(df):
print(len(df))
for i in range(len(df))
print(df[i])
with gr.Blocks() as demo:
df = gr.Dataframe(
headers=["name"],
datatype=["str"],
row_count=5,
col_count=(1, "fixed"))
btn = gr.Button()
btn.click(pri, df)
demo.launch()