Spaces:
Sleeping
Sleeping
Commit
•
7f6d399
1
Parent(s):
5d7d65b
Update app.py
Browse files
app.py
CHANGED
@@ -1,17 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def pri(df):
|
4 |
-
print(len(df))
|
5 |
-
|
6 |
-
|
7 |
with gr.Blocks() as demo:
|
8 |
df = gr.Dataframe(
|
9 |
-
type="array"
|
10 |
headers=["name"],
|
11 |
datatype=["str"],
|
12 |
row_count=(4, "fixed"),
|
13 |
col_count=(1, "fixed"))
|
14 |
btn = gr.Button()
|
15 |
-
btn.click(
|
16 |
|
17 |
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
|
|
|
|
|
|
|
|
3 |
with gr.Blocks() as demo:
|
4 |
df = gr.Dataframe(
|
5 |
+
type="array",
|
6 |
headers=["name"],
|
7 |
datatype=["str"],
|
8 |
row_count=(4, "fixed"),
|
9 |
col_count=(1, "fixed"))
|
10 |
btn = gr.Button()
|
11 |
+
btn.click(print, df)
|
12 |
|
13 |
demo.launch()
|