gloignon commited on
Commit
15b330f
·
verified ·
1 Parent(s): 1b5bc8f

Trying to prevent add columns

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -35,7 +35,15 @@ def compute_pca(data):
35
  def text_editor_app():
36
  with gr.Blocks() as demo:
37
  # Use a DataFrame component for inputs
38
- data_input = gr.Dataframe(headers=["Identifier", "Text"], datatype=["str", "str"], label="Input Data")
 
 
 
 
 
 
 
 
39
 
40
  # Button to run the analysis
41
  analyze_button = gr.Button("Run Analysis")
 
35
  def text_editor_app():
36
  with gr.Blocks() as demo:
37
  # Use a DataFrame component for inputs
38
+ data_input = gr.Dataframe(
39
+ headers=["Identifier", "Text"],
40
+ datatype=["str", "str"],
41
+ row_count=(4, "dynamic"),
42
+ col_count=(2, "fixed"),
43
+ max_cols=2,
44
+ label="Input Data",
45
+ wrap=True
46
+ )
47
 
48
  # Button to run the analysis
49
  analyze_button = gr.Button("Run Analysis")