Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
with gr.Blocks() as demo:
|
| 4 |
-
gr.Dataframe(
|
| 5 |
headers=["name"],
|
| 6 |
datatype=["str"],
|
| 7 |
row_count=5,
|
| 8 |
col_count=(1, "fixed"))
|
|
|
|
|
|
|
| 9 |
|
| 10 |
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
with gr.Blocks() as demo:
|
| 4 |
+
df = gr.Dataframe(
|
| 5 |
headers=["name"],
|
| 6 |
datatype=["str"],
|
| 7 |
row_count=5,
|
| 8 |
col_count=(1, "fixed"))
|
| 9 |
+
btn = gr.Button()
|
| 10 |
+
btn.click(print, df)
|
| 11 |
|
| 12 |
demo.launch()
|