Spaces:
Paused
Paused
File size: 338 Bytes
0376edc af7a4f6 a54ef95 71d6b82 0376edc 71d6b82 1f36838 0376edc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import gradio as gr
def pri(df):
print(df)
print("-----")
for item in df:
print(item)
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() |